Skip to content

Commit 4b509b9

Browse files
unit test fix
1 parent 5b6b7ed commit 4b509b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/commands/scan_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,11 @@ func TestAddContainersScan_WithCustomImages_ShouldSetUserCustomImages(t *testing
18081808
}()
18091809

18101810
// Execute
1811-
result := addContainersScan(cmdCommand, resubmitConfig)
1811+
result, err := addContainersScan(cmdCommand, resubmitConfig)
1812+
1813+
// Verify no error occurred
1814+
assert.NilError(t, err)
1815+
assert.Assert(t, result != nil, "Expected result to not be nil")
18121816

18131817
// Verify
18141818
containerMapConfig, ok := result[resultsMapValue].(*wrappers.ContainerConfig)

0 commit comments

Comments
 (0)