Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tej656 committed Feb 24, 2025
1 parent ce2e6c2 commit 3241c6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions analytics/pubxai/pubxai_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,11 @@ func TestPubxaiModule_start(t *testing.T) {

if tt.expectUpdate {
mockAuctionBidsQueue.On("UpdateConfig", tt.newConfig.BufferInterval, tt.newConfig.BufferSize).Return(nil).Run(func(args mock.Arguments) {
// Signal done after the update is complete
done <- struct{}{}
})
mockWinBidsQueue.On("UpdateConfig", tt.newConfig.BufferInterval, tt.newConfig.BufferSize).Return(nil)
mockWinBidsQueue.On("UpdateConfig", tt.newConfig.BufferInterval, tt.newConfig.BufferSize).Return(nil).Run(func(args mock.Arguments) {
done <- struct{}{}
})
}

go p.start(configChan)
Expand Down

0 comments on commit 3241c6f

Please sign in to comment.