Skip to content

Commit

Permalink
Replace require for assert in container tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JAORMX committed Dec 12, 2023
1 parent 2f968c6 commit b16c6ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/containers/containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
)

func TestGetDigest(t *testing.T) {
Expand Down Expand Up @@ -75,13 +75,13 @@ func TestGetDigest(t *testing.T) {
defer cancel()
got, err := GetDigest(ctx, tt.args.refstr)
if tt.wantErr {
require.Error(t, err)
require.Empty(t, got)
assert.Error(t, err)
assert.Empty(t, got)
return
}

require.NoError(t, err)
require.Equal(t, tt.want, got)
assert.NoError(t, err)
assert.Equal(t, tt.want, got)
})
}
}

0 comments on commit b16c6ef

Please sign in to comment.