This commit is contained in:
MedzikUser 2021-10-27 22:54:30 +02:00
parent c9e5fe26ca
commit 4b201b07f5
3 changed files with 3 additions and 1 deletions

View File

@ -3,8 +3,8 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/blang/semver"
"github.com/MedzikUser/go-github-selfupdate/selfupdate" "github.com/MedzikUser/go-github-selfupdate/selfupdate"
"github.com/blang/semver"
"os" "os"
) )

View File

@ -197,6 +197,7 @@ func TestNoReleaseFound(t *testing.T) {
t.Fatal("Repo having no release should not be found") t.Fatal("Repo having no release should not be found")
} }
} }
/* /*
func TestDetectFromBrokenGitHubEnterpriseURL(t *testing.T) { func TestDetectFromBrokenGitHubEnterpriseURL(t *testing.T) {
up, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: "https://example.com"}) up, err := NewUpdater(Config{APIToken: "hogehoge", EnterpriseBaseURL: "https://example.com"})

View File

@ -324,6 +324,7 @@ func TestBrokenGitHubEnterpriseURL(t *testing.T) {
t.Error("Unexpected error occurred:", err) t.Error("Unexpected error occurred:", err)
} }
} }
/* /*
func TestUpdateFromGitHubEnterprise(t *testing.T) { func TestUpdateFromGitHubEnterprise(t *testing.T) {
token := os.Getenv("GITHUB_ENTERPRISE_TOKEN") token := os.Getenv("GITHUB_ENTERPRISE_TOKEN")