Skip to content

Commit

Permalink
test: remote
Browse files Browse the repository at this point in the history
Add missing expectation for fake scanner mock
  • Loading branch information
sundowndev committed Jul 23, 2022
1 parent 90b48f0 commit 2d05a27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/remote/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func TestRemoteLibraryEmptyScan(t *testing.T) {
}

fakeScanner := &mocks.Scanner{}
fakeScanner.On("Name").Return("mockscanner").Times(2)
fakeScanner.On("ShouldRun", *num).Return(false).Once()

lib := NewLibrary(filter.NewEngine())
Expand Down

0 comments on commit 2d05a27

Please sign in to comment.