Skip to content

Commit 19401ff

Browse files
fix e2e bug
1 parent cb9cdf9 commit 19401ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func getRESTClient(t *testing.T) *gogithub.Client {
7272
// Create a new GitHub client with the token
7373
ghClient := gogithub.NewClient(nil).WithAuthToken(token)
7474

75-
if host := getE2EHost(); host != "https://github.com" {
75+
if host := getE2EHost(); host != "" && host != "https://github.com" {
7676
var err error
7777
// Currently this works for GHEC because the API is exposed at the api subdomain and the path prefix
7878
// but it would be preferable to extract the host parsing from the main server logic, and use it here.

0 commit comments

Comments
 (0)