remove TestGitHubEnterpriseClientWithoutToken which is no longer valid due to 41acec2
This commit is contained in:
parent
41acec25c4
commit
967270aa69
|
@ -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 New Issue