Skip to content

Commit

Permalink
chore: more assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
RRashmit committed Oct 24, 2024
1 parent d47bb83 commit 2a61815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/command/command_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func TestCommandPlugin_Process(t *testing.T) {
commandPlugin.Process(ctx, &bus.Message{Topic: bus.DataPlaneResponseTopic, Data: protos.OKDataPlaneResponse()})
require.Equal(t, 1, fakeCommandService.SendDataPlaneResponseCallCount())

commandPlugin.Process(ctx, &bus.Message{Topic: bus.DataplaneHealthProcessTopic, Data: protos.OKDataPlaneResponse()})
commandPlugin.Process(ctx, &bus.Message{Topic: bus.DataplaneHealthProcessTopic, Data: protos.GetHealthyInstanceHealth()})
require.Equal(t, 1, fakeCommandService.UpdateDataPlaneHealthCallCount())
require.Equal(t, 1, fakeCommandService.SendDataPlaneResponseCallCount())
}

Expand Down

0 comments on commit 2a61815

Please sign in to comment.