Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Sep 21, 2023
1 parent 89c228f commit 43f431f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/bus/bus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion tests/message.test.ts
Original file line number Diff line number Diff line change
@@ -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())
Expand Down

0 comments on commit 43f431f

Please sign in to comment.