Skip to content

Commit

Permalink
Fix tests of the ostree transport
Browse files Browse the repository at this point in the history
... which I broke on 2022-03-16, and noone noticed.

(The actual non-test code was, at least east as of today, buildable,
so this does not prove that noone is using the code... but it's a
hint in that direction.)

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jul 12, 2023
1 parent 9b3e4a4 commit b53e223
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ostree/ostree_dest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@

package ostree

import (
"github.com/containers/image/v5/internal/private"
)

var _ private.ImageDestination = (*ostreeImageDestination)(nil)
4 changes: 2 additions & 2 deletions ostree/ostree_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestNewReference(t *testing.T) {
require.NoError(t, err, path)
}

_, err = NewReference("busybox", tmpDir+"/thisparentdoesnotexist/something")
_, err := NewReference("busybox", tmpDir+"/thisparentdoesnotexist/something")
assert.Error(t, err)
}

Expand Down Expand Up @@ -239,7 +239,7 @@ func TestReferenceNewImage(t *testing.T) {
func TestReferenceNewImageSource(t *testing.T) {
ref, err := Transport.ParseReference("busybox")
require.NoError(t, err)
src, err = ref.NewImageSource(context.Background(), nil)
src, err := ref.NewImageSource(context.Background(), nil)
require.NoError(t, err)
defer src.Close()
}
Expand Down

0 comments on commit b53e223

Please sign in to comment.