mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
remove TestGitHubEnterpriseClientWithoutToken which is no longer valid due to 41acec2
This commit is contained in:
parent
41acec25c4
commit
967270aa69
1 changed files with 0 additions and 10 deletions
|
@ -61,16 +61,6 @@ func TestGitHubEnterpriseClient(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestGitHubEnterpriseClientWithoutToken(t *testing.T) {
|
||||
token := os.Getenv("GITHUB_TOKEN")
|
||||
defer os.Setenv("GITHUB_TOKEN", token)
|
||||
os.Setenv("GITHUB_TOKEN", "")
|
||||
_, err := NewUpdater(Config{EnterpriseBaseURL: "https://github.company.com/api/v3/"})
|
||||
if err == nil {
|
||||
t.Fatal("Error should be reported because of empty token")
|
||||
}
|
||||
}
|
||||
|
||||
func TestGitHubEnterpriseClientInvalidURL(t *testing.T) {
|
||||
_, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: ":this is not a URL"})
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in a new issue