Skip to content

Commit 03f4028

Browse files
janiszmtodor
andauthored
Update internal/testutil/ports_test.go
Co-authored-by: Mladen Todorovic <mtodor@gmail.com>
1 parent fb5c3e0 commit 03f4028

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/testutil/ports_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ func TestGetPortForTest(t *testing.T) {
3535
})
3636
}
3737

38-
// We should have different ports for different test paths
39-
if len(ports) < 2 {
40-
t.Errorf("Expected multiple different ports, got %d unique ports from %d tests", len(ports), testCount)
41-
}
38+
assert.Len(t, 10, ports)
4239
})
4340

4441
t.Run("port is within safe range avoiding privileged ports", func(t *testing.T) {

0 commit comments

Comments
 (0)