update
This commit is contained in:
parent
c9e5fe26ca
commit
4b201b07f5
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"})
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue