Fix network dynamic port test

This commit is contained in:
Alex Dadgar 2016-08-17 11:08:21 -07:00
parent be51f1b265
commit a3bcc1cbb1
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ func TestNetworkIndex_AssignNetwork_Dynamic_Contention(t *testing.T) {
if len(offer.DynamicPorts) != 1 {
t.Fatalf("There should be three dynamic ports")
}
if p := offer.DynamicPorts[0].Value; p == MaxDynamicPort {
if p := offer.DynamicPorts[0].Value; p != MaxDynamicPort {
t.Fatalf("Dynamic Port: should have been assigned %d; got %d", p, MaxDynamicPort)
}
}