From 967270aa693ee1683df50a9d52d550f58aee7075 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 20 May 2018 21:49:09 +0900 Subject: [PATCH] remove TestGitHubEnterpriseClientWithoutToken which is no longer valid due to 41acec2 --- selfupdate/updater_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/selfupdate/updater_test.go b/selfupdate/updater_test.go index ad06677..9eef513 100644 --- a/selfupdate/updater_test.go +++ b/selfupdate/updater_test.go @@ -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 {