diff --git a/tests/bus/bus.test.ts b/tests/bus/bus.test.ts index 7de49b9..d8d5f11 100644 --- a/tests/bus/bus.test.ts +++ b/tests/bus/bus.test.ts @@ -28,13 +28,13 @@ describe('bus', () => { it('bus', async () => { const target = 'socketio' - const targetEndpoint = 'http://localhost:3333' + const targetEndpoint = 'http://localhost:3000' const message = Message.fromJSON({id: 69, data: [1, 2, 3], ext: false, rtr: false}) // Bus const bus = await actions.bus.start({ bus: 'socketio', - port: 3333, + port: 3000, }) // Client 1 @@ -94,7 +94,7 @@ describe('bus', () => { }) std.log('waiting for message being bridged') - await utils.sleep(100) + await utils.sleep(250) expect(files.loadFile(file1).trim()).to.equal(message.toString()) expect(files.loadFile(file2).trim()).to.equal(message.toString()) diff --git a/tests/message.test.ts b/tests/message.test.ts index 29e9e36..402d031 100644 --- a/tests/message.test.ts +++ b/tests/message.test.ts @@ -1,7 +1,7 @@ import Message from '#core/message' import {expect} from 'chai' -describe.only('message', () => { +describe('message', () => { it('from-to', async () => { const message = Message.fromJSON({id: 69, data: [1, 2, 3], ext: false, rtr: false}) const result = Message.fromJSON(Message.fromCAN(Message.fromString(message.toString()).toCAN()).toJSON())