From 48af7bff04a9a6ca09d58b4f0d8319d83118875f Mon Sep 17 00:00:00 2001 From: Sebastian Good Date: Mon, 1 Feb 2021 09:34:06 +0000 Subject: [PATCH] fix: abstract topic list concurrency failing due to result ordering (#75) --- abstract.js | 1 + 1 file changed, 1 insertion(+) diff --git a/abstract.js b/abstract.js index d81e978..0d0b028 100644 --- a/abstract.js +++ b/abstract.js @@ -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)) })