Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unknown brokerId's during testing #89

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,8 @@ function abstractPersistence (opts) {

testInstance('stream all will messages', (t, instance) => {
const client = {
id: '12345'
id: '12345',
brokerId: instance.broker.id
}
const toWrite = {
topic: 'hello/died',
Expand Down Expand Up @@ -1512,10 +1513,12 @@ function abstractPersistence (opts) {
testInstance('stream all will message for unknown brokers', (t, instance) => {
const originalId = instance.broker.id
const client = {
id: '42'
id: '42',
brokerId: instance.broker.id
}
const anotherClient = {
id: '24'
id: '24',
brokerId: instance.broker.id
}
const toWrite1 = {
topic: 'hello/died42',
Expand Down