Skip to content

Commit

Permalink
fix: wrong replace
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jan 17, 2024
1 parent 07844f2 commit c70a6c9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions modules/compose/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func TestDockerComposeStrategyForInvalidService(t *testing.T) {
Invoke()
require.NoError(t, err.Error, "Expected error to be thrown because service with wait strategy is not running")

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
}

Expand All @@ -162,7 +162,7 @@ func TestDockerComposeWithWaitLogStrategy(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 2)
assert.Len(t, compose.Services, 2)
assert.Contains(t, compose.Services, "nginx")
assert.Contains(t, compose.Services, "mysql")
}
Expand All @@ -188,7 +188,7 @@ func TestDockerComposeWithWaitForService(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
}

Expand All @@ -212,7 +212,7 @@ func TestDockerComposeWithWaitForShortLifespanService(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 2)
assert.Len(t, compose.Services, 2)
assert.Contains(t, compose.Services, "falafel")
assert.Contains(t, compose.Services, "tzatziki")
}
Expand All @@ -238,7 +238,7 @@ func TestDockerComposeWithWaitHTTPStrategy(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
}

Expand All @@ -263,7 +263,7 @@ func TestDockerComposeWithContainerName(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
}

Expand All @@ -285,7 +285,7 @@ func TestDockerComposeWithWaitStrategy_NoExposedPorts(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
}

Expand All @@ -308,7 +308,7 @@ func TestDockerComposeWithMultipleWaitStrategies(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
assert.Contains(t, compose.Services, "mysql")
}
Expand Down Expand Up @@ -336,7 +336,7 @@ func TestDockerComposeWithFailedStrategy(t *testing.T) {
// A specific error message matcher is not asserted since the docker library can change the return message, breaking this test
require.NoError(t, err.Error, "Expected error to be thrown because of a wrong suplied wait strategy")

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")
}

Expand All @@ -357,7 +357,7 @@ func TestLocalDockerComposeComplex(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 2)
assert.Len(t, compose.Services, 2)
assert.Contains(t, compose.Services, "nginx")
assert.Contains(t, compose.Services, "mysql")
}
Expand All @@ -382,7 +382,7 @@ func TestLocalDockerComposeWithEnvironment(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 1)
assert.Len(t, compose.Services, 1)
assert.Contains(t, compose.Services, "nginx")

present := map[string]string{
Expand Down Expand Up @@ -417,7 +417,7 @@ func TestLocalDockerComposeWithMultipleComposeFiles(t *testing.T) {
Invoke()
checkIfError(t, err)

assert.Len(t, , 3)
assert.Len(t, compose.Services, 3)
assert.Contains(t, compose.Services, "nginx")
assert.Contains(t, compose.Services, "mysql")
assert.Contains(t, compose.Services, "postgres")
Expand Down

0 comments on commit c70a6c9

Please sign in to comment.