From bf7f9c823c4dc75170bff8e00a6952f4d07494fd Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 9 Sep 2014 22:08:26 -0700 Subject: [PATCH] fixed proxy test that relied on map ordering --- shared/build/proxy/proxy_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/shared/build/proxy/proxy_test.go b/shared/build/proxy/proxy_test.go index 19ef98539..5e3ab54ac 100644 --- a/shared/build/proxy/proxy_test.go +++ b/shared/build/proxy/proxy_test.go @@ -10,12 +10,10 @@ func TestProxy(t *testing.T) { // proxy shell script. p := Proxy{} p.Set("8080", "172.1.4.5") - p.Set("8000", "172.1.3.1") b := p.Bytes() expected := `#!/bin/bash [ -x /usr/bin/socat ] && socat TCP-LISTEN:8080,fork TCP:172.1.4.5:8080 & -[ -x /usr/bin/socat ] && socat TCP-LISTEN:8000,fork TCP:172.1.3.1:8000 & ` if string(b) != expected { t.Errorf("Invalid proxy \n%s", expected)