Skip to content

Commit

Permalink
Fix network dynamic port test
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Aug 17, 2016
1 parent 3ca1ac1 commit ee980b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/structs/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit ee980b6

Please sign in to comment.