From acc22c14b2f179392aae6f3d26549eab33ee02b1 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 23 Jul 2024 13:37:04 +0800 Subject: [PATCH] fix: test error --- packages/core/server/src/__tests__/pub-sub-manager.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/server/src/__tests__/pub-sub-manager.test.ts b/packages/core/server/src/__tests__/pub-sub-manager.test.ts index 63707ddd95..cba670c19a 100644 --- a/packages/core/server/src/__tests__/pub-sub-manager.test.ts +++ b/packages/core/server/src/__tests__/pub-sub-manager.test.ts @@ -8,6 +8,7 @@ */ import { createMockServer, MockServer } from '@nocobase/test'; +import { uid } from '@nocobase/utils'; import { createClient } from 'redis'; import Plugin from '../plugin'; import { IPubSubAdapter } from '../pub-sub-manager'; @@ -76,11 +77,11 @@ describe('pub-sub-manager', () => { }; const node1: MockServer = await createMockServer({ ...appOpts, - name: 'node1', + name: 'app1_' + uid(), }); const node2: MockServer = await createMockServer({ ...appOpts, - name: 'node2', + name: 'app1_' + uid(), }); await node1.pubSubManager.publish('chan1nel', `channel1_message_1`); await sleep(1000);