Avoid using T.run() as it's not supported on Go 1.6.
Fixes
@@ -555,7 +555,7 @@ func TestInitializeConfig(t *testing.T) {
false,
},
} {
- t.Run(tt.desc, func(t *testing.T) {
+ t.Logf("Running test: %s", tt.desc)
envService, envVersion := "", ""
if tt.onGAE {
envService, envVersion = testGAEService, testGAEVersion
@@ -593,7 +593,6 @@ func TestInitializeConfig(t *testing.T) {
if !strings.Contains(errorString, tt.wantErrorString) {
t.Errorf("initializeConfig(%v) got error: %v, want contain %v", tt.config, errorString, tt.wantErrorString)
}
-
if tt.wantErrorString == "" {
tt.wantConfig.APIAddr = apiAddress
}
@@ -601,7 +600,6 @@ func TestInitializeConfig(t *testing.T) {
if config != tt.wantConfig {
t.Errorf("initializeConfig(%v) got: %v, want %v", tt.config, config, tt.wantConfig)
}
- })
}
for _, tt := range []struct {
