Skip to content

Commit

Permalink
chore: fix custom dest mgr tests for kv
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed May 3, 2024
1 parent 9611422 commit 1b512bf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func TestKVManagerInvocations(t *testing.T) {
`)
ctrl := gomock.NewController(t)
mockKVStoreManager := mock_kvstoremanager.NewMockKVStoreManager(ctrl)
mockKVStoreManager.EXPECT().ShouldSendDataAsJSON(someDestination.Config).Return(false).Times(1)
mockKVStoreManager.EXPECT().HSet("someHash", "someKey", "someValue").Times(1)
mockKVStoreManager.EXPECT().StatusCode(nil).Times(1)
customManager.send(event, mockKVStoreManager, someDestination.Config)
Expand All @@ -189,6 +190,7 @@ func TestKVManagerInvocations(t *testing.T) {
}
`)
mockKVStoreManager := mock_kvstoremanager.NewMockKVStoreManager(ctrl)
mockKVStoreManager.EXPECT().ShouldSendDataAsJSON(someDestination.Config).Return(false).Times(1)
mockKVStoreManager.EXPECT().HMSet("someKey", map[string]interface{}{
"field1": "value1",
"field2": "value2",
Expand Down

0 comments on commit 1b512bf

Please sign in to comment.