Skip to content

Commit

Permalink
fix: small mistakes of autofix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackarySantana committed Jan 9, 2025
1 parent 171839f commit 428ca8a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thirdparty/docker/docker_cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ func TestCleanup(t *testing.T) {

info, err = dockerClient.Info(ctx)
assert.NoError(t, err)
assert.Equal(t, 0, info.Containers)
assert.Zero(t, info.Containers)
},
"cleanImages": func(*testing.T) {
assert.NoError(t, cleanImages(context.Background(), dockerClient))

var info types.Info
info, err = dockerClient.Info(ctx)
assert.NoError(t, err)
assert.Equal(t, 0, info.Images)
assert.Zero(t, info.Images)
},
"cleanVolumes": func(*testing.T) {
_, err = dockerClient.VolumeCreate(ctx, volume.CreateOptions{})
Expand Down Expand Up @@ -83,14 +83,14 @@ func TestCleanup(t *testing.T) {
require.NoError(t, err)
volumes, err := dockerClient.VolumeList(ctx, volume.ListOptions{})
require.NoError(t, err)
require.Positive(t, volumes.Volumes)
require.NotEmpty(t, volumes.Volumes)

assert.NoError(t, Cleanup(context.Background(), grip.NewJournaler("")))

info, err = dockerClient.Info(ctx)
assert.NoError(t, err)
assert.Equal(t, 0, info.Containers)
assert.Equal(t, 0, info.Images)
assert.Zero(t, info.Containers)
assert.Zero(t, info.Images)

volumes, err = dockerClient.VolumeList(ctx, volume.ListOptions{})
assert.NoError(t, err)
Expand Down

0 comments on commit 428ca8a

Please sign in to comment.