Skip to content

Commit

Permalink
Make sure that we actually return all expected argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric BAIL committed Jan 11, 2024
1 parent 5b88091 commit 4eaf13a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/command/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,16 @@ func TestAppendEnv(t *testing.T) {
}
for i := len(tt.wantStart); i < len(got); i += 2 {
found := false
for _, v := range tt.wantEnd {
for k, v := range tt.wantEnd {
if v[0] == got[i] && v[1] == got[i+1] {
tt.wantEnd = append(tt.wantEnd[:k], tt.wantEnd[k+1:]...)
found = true
break
}
}
assert.Equal(t, true, found)
}
assert.Equal(t, 0, len(tt.wantEnd))
})
}
}
Expand Down

0 comments on commit 4eaf13a

Please sign in to comment.