Skip to content

Commit

Permalink
fix: abstract topic list concurrency failing due to result ordering (#75
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Sebastian Good committed Feb 1, 2021
1 parent dd8c501 commit 48af7bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ function abstractPersistence (opts) {
if (!--calls) {
instance.subscriptionsByClient(client, function (err, resubs) {
t.notOk(err, 'no error')
resubs.sort((a, b) => b.topic.localeCompare(b.topic, 'en'))
t.deepEqual(resubs, [subs1[0], subs2[0]])
instance.destroy(t.end.bind(t))
})
Expand Down

0 comments on commit 48af7bf

Please sign in to comment.