remove TestGitHubEnterpriseClientWithoutToken which is no longer valid due to 41acec2

This commit is contained in:
rhysd 2018-05-20 21:49:09 +09:00
parent 41acec25c4
commit 967270aa69
1 changed files with 0 additions and 10 deletions

View File

@ -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 {