diff --git a/nomad/structs/network_test.go b/nomad/structs/network_test.go index bb897fb349e..4a2415b5469 100644 --- a/nomad/structs/network_test.go +++ b/nomad/structs/network_test.go @@ -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) } }