mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
pkg/e2e: fix contains: use assert.Contains (testifylint)
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 <github@gone.nl>
This commit is contained in:
parent
ed72c21871
commit
6f1f76c0e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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++
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue