diff options
author | Srini Brahmaroutu <sbrahma@us.ibm.com> | 2014-11-03 18:15:55 +0000 |
---|---|---|
committer | Srini Brahmaroutu <srbrahma@us.ibm.com> | 2015-01-02 23:21:26 +0000 |
commit | 2338a9cf5a1ba5576b92e49065335a9c9251ade0 (patch) | |
tree | 2abfa28b2cd85ed45dfa3259bc7f4bda66964319 /runconfig/config_test.go | |
parent | b2ab733c993ee6124c164defceac6996206d69fa (diff) | |
download | docker-2338a9cf5a1ba5576b92e49065335a9c9251ade0.tar.gz |
add ability to publish range of ports
Closes #8899
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Diffstat (limited to 'runconfig/config_test.go')
-rw-r--r-- | runconfig/config_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runconfig/config_test.go b/runconfig/config_test.go index f856c87f54..accbd9107e 100644 --- a/runconfig/config_test.go +++ b/runconfig/config_test.go @@ -256,8 +256,8 @@ func TestMerge(t *testing.T) { t.Fatalf("Expected 4 ExposedPorts, 0000, 1111, 2222 and 3333, found %d", len(configUser.ExposedPorts)) } for portSpecs := range configUser.ExposedPorts { - if portSpecs.Port() != "0000" && portSpecs.Port() != "1111" && portSpecs.Port() != "2222" && portSpecs.Port() != "3333" { - t.Fatalf("Expected 0000 or 1111 or 2222 or 3333, found %s", portSpecs) + if portSpecs.Port() != "0" && portSpecs.Port() != "1111" && portSpecs.Port() != "2222" && portSpecs.Port() != "3333" { + t.Fatalf("Expected %q or %q or %q or %q, found %s", 0, 1111, 2222, 3333, portSpecs) } } |