Skip to content

Commit

Permalink
fix TestCheckpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb-Hurshman committed Nov 20, 2024
1 parent 04621ad commit 9c4b96e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions receiver/splunksearchapireceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ func TestCheckpoint(t *testing.T) {
mockStorage := &mockStorage{}
ssapireceiver.storageClient = mockStorage
mockStorage.On("Set", mock.Anything, eventStorageKey, mock.Anything).Return(nil)
ssapireceiver.checkpointRecord = &EventRecord{
Offset: 0,
Search: "",
}
err := ssapireceiver.checkpoint(context.Background())
require.NoError(t, err)
mockStorage.AssertCalled(t, "Set", mock.Anything, eventStorageKey, []byte(`{"offset":0,"search":""}`))
Expand Down

0 comments on commit 9c4b96e

Please sign in to comment.