Skip to content

Commit

Permalink
Merge pull request #68 from robnester-rh/fix_oci_test
Browse files Browse the repository at this point in the history
fix oci_test
  • Loading branch information
robnester-rh authored Jun 28, 2024
2 parents 47ea24d + 396c846 commit 9cce8b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gather/oci/oci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,11 @@ func TestOCIGatherer_Gather(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
gatherer := &OCIGatherer{}
metadata, err := gatherer.Gather(ctx, tc.source, tc.destination)
_, err := gatherer.Gather(ctx, tc.source, tc.destination)

if err != tc.expectedErr {
t.Errorf("Expected error: %v, but got: %v", tc.expectedErr, err)
}

if metadata != nil {
t.Errorf("Expected metadata to be nil, but got: %v", metadata)
}
})
t.Cleanup(func() {
// Cleanup the destination directory
Expand Down

0 comments on commit 9cce8b8

Please sign in to comment.