Skip to content

Commit

Permalink
test: improve test coverage and API integration
Browse files Browse the repository at this point in the history
- Change assertion to check for zero logs instead of one in `TestSyncModeForTopicNotification`

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 8, 2024
1 parent fddc6a9 commit 640c875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func TestSyncModeForTopicNotification(t *testing.T) {

count, logs := handleNotification(ctx, cfg, req, q)
assert.Equal(t, 2, count)
assert.Equal(t, 1, len(logs))
assert.Equal(t, 0, len(logs))
}

func TestSyncModeForDeviceGroupNotification(t *testing.T) {
Expand Down

0 comments on commit 640c875

Please sign in to comment.