mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
dashboard/app: fix tests hang
This is ugly but without this go test hangs with: panic: Metadata fetch failed for 'instance/attributes/gae_backend_version': Get http://metadata/computeMetadata/v1/instance/attributes/gae_backend_version: dial tcp: lookup metadata on 127.0.0.1:53: no such host It's unclear what's the proper fix for this. It used to work for me for ridiculous reasons only: somebody provided metadata host which returned errors, but since nobody cares what's in the returned response and no error checking whatsoever, it somehow did not crash...
This commit is contained in:
parent
9af8b4b30b
commit
9b6ecd9356
@ -6,6 +6,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
@ -16,6 +17,14 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
// This is ugly but without this go test hangs with:
|
||||
// panic: Metadata fetch failed for 'instance/attributes/gae_backend_version':
|
||||
// Get http://metadata/computeMetadata/v1/instance/attributes/gae_backend_version:
|
||||
// dial tcp: lookup metadata on 127.0.0.1:53: no such host
|
||||
// It's unclear what's the proper fix for this.
|
||||
os.Setenv("GAE_MODULE_VERSION", "1")
|
||||
os.Setenv("GAE_MINOR_VERSION", "1")
|
||||
|
||||
isBrokenAuthDomainInTest = true
|
||||
obsoleteWhatWontBeFixBisected = true
|
||||
notifyAboutUnsuccessfulBisections = true
|
||||
|
Loading…
Reference in New Issue
Block a user