wmSendMessage sends a message and asserts no error
(t *testing.T, wm *watchManager, bucket, key string, value []byte)
| 48 | |
| 49 | // wmSendMessage sends a message and asserts no error |
| 50 | func wmSendMessage(t *testing.T, wm *watchManager, bucket, key string, value []byte) { |
| 51 | message := NewMessage(bucket, key, value, DataFlag(0), uint64(time.Now().Unix()), MessageOptions{Priority: MessagePriorityMedium}) |
| 52 | err := wm.sendMessage(message) |
| 53 | assert.NoError(t, err) |
| 54 | } |
| 55 | |
| 56 | // wmSendMessages sends multiple messages to the same bucket/key |
| 57 | func wmSendMessages(t *testing.T, wm *watchManager, bucket, key string, count int) { |
no test coverage detected