Skip to content

Commit

Permalink
pkg/e2e: fix contains: use assert.Contains (testifylint)
Browse files Browse the repository at this point in the history
    pkg/e2e/ps_test.go:50:5: contains: use assert.Contains (testifylint)
                    assert.True(t, strings.Contains(line, "127.0.0.1:8001->8000/tcp"))
                    ^
    pkg/e2e/ps_test.go:54:5: contains: use assert.Contains (testifylint)
                    assert.True(t, strings.Contains(line, "80/tcp, 443/tcp, 8080/tcp"))
                    ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Feb 10, 2025
1 parent ed72c21 commit 5bdab58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/e2e/ps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ func TestPs(t *testing.T) {
count := 0
for _, line := range lines[1:3] {
if strings.Contains(line, "e2e-ps-busybox-1") {
assert.True(t, strings.Contains(line, "127.0.0.1:8001->8000/tcp"))
assert.Contains(t, line, "127.0.0.1:8001->8000/tcp")
count++
}
if strings.Contains(line, "e2e-ps-nginx-1") {
assert.True(t, strings.Contains(line, "80/tcp, 443/tcp, 8080/tcp"))
assert.Contains(t, line, "80/tcp, 443/tcp, 8080/tcp")
count++
}
}
Expand Down

0 comments on commit 5bdab58

Please sign in to comment.