From 4b201b07f5f7ab17903cc08ae792027ba87b03f0 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Wed, 27 Oct 2021 22:54:30 +0200 Subject: [PATCH] update --- cmd/selfupdate-example/main.go | 2 +- selfupdate/detect_test.go | 1 + selfupdate/update_test.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/selfupdate-example/main.go b/cmd/selfupdate-example/main.go index 11a9a41..488998f 100644 --- a/cmd/selfupdate-example/main.go +++ b/cmd/selfupdate-example/main.go @@ -3,8 +3,8 @@ package main import ( "flag" "fmt" - "github.com/blang/semver" "github.com/MedzikUser/go-github-selfupdate/selfupdate" + "github.com/blang/semver" "os" ) diff --git a/selfupdate/detect_test.go b/selfupdate/detect_test.go index cae9e6b..1453424 100644 --- a/selfupdate/detect_test.go +++ b/selfupdate/detect_test.go @@ -197,6 +197,7 @@ func TestNoReleaseFound(t *testing.T) { t.Fatal("Repo having no release should not be found") } } + /* func TestDetectFromBrokenGitHubEnterpriseURL(t *testing.T) { up, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: "https://example.com"}) diff --git a/selfupdate/update_test.go b/selfupdate/update_test.go index 11e46cf..04c049e 100644 --- a/selfupdate/update_test.go +++ b/selfupdate/update_test.go @@ -324,6 +324,7 @@ func TestBrokenGitHubEnterpriseURL(t *testing.T) { t.Error("Unexpected error occurred:", err) } } + /* func TestUpdateFromGitHubEnterprise(t *testing.T) { token := os.Getenv("GITHUB_ENTERPRISE_TOKEN")