Skip to content

Commit

Permalink
directory: test case nit
Browse files Browse the repository at this point in the history
This needs to be "require" rather than "assert", as if error is
returned, test needs to fail now. Otherwise, close will panic.

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Sep 19, 2024
1 parent b9cc8d2 commit 58e46d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion directory/directory_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func TestReferenceNewImageSource(t *testing.T) {
func TestReferenceNewImageDestination(t *testing.T) {
ref, _ := refToTempDir(t)
dest, err := ref.NewImageDestination(context.Background(), nil)
assert.NoError(t, err)
require.NoError(t, err)
defer dest.Close()
}

Expand Down

0 comments on commit 58e46d0

Please sign in to comment.