Merge pull request #4319 from achanda/fix-tests

Fix broken tests
pull/4323/head
Mitchell Hashimoto 2018-06-30 16:55:08 +02:00 committed by GitHub
commit d7c5da335b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2918,7 +2918,7 @@ func TestAgentConnectProxyConfig_Blocking(t *testing.T) {
},
"bind_address": "127.0.0.1",
"local_service_address": "127.0.0.1:8000",
"bind_port": float64(1234),
"bind_port": int(1234),
"connect_timeout_ms": float64(500),
},
}
@ -3473,7 +3473,7 @@ func TestAgentConnectProxyConfig_ConfigHandling(t *testing.T) {
wantCommand: []string{"foo.sh"},
wantConfig: map[string]interface{}{
"bind_address": "127.0.0.1",
"bind_port": float64(1024),
"bind_port": int(1024),
"local_service_address": "127.0.0.1:9191",
"connect_timeout_ms": float64(2000),
"telemetry": lib.TelemetryConfig{
@ -3564,7 +3564,7 @@ func TestAgentConnectProxyConfig_ConfigHandling(t *testing.T) {
wantCommand: []string{"foo.sh"},
wantConfig: map[string]interface{}{
"bind_address": "127.0.0.1",
"bind_port": float64(1024),
"bind_port": int(1024),
"local_service_address": "127.0.0.1:9191",
"connect_timeout_ms": float64(2000),
"telemetry": map[string]interface{}{ // No defaults merged