Skip to content

Commit

Permalink
fix: unknown brokerId's during testing (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme authored Jun 13, 2022
1 parent 161d7b5 commit b7554f6
Showing 1 changed file with 6 additions and 3 deletions.
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

0 comments on commit b7554f6

Please sign in to comment.