Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Sep 23, 2023
1 parent 5fcf68d commit b22e7be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/bridge/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export function createBridgeTest(

it(name, async () => {
const message = Message.fromJSON({id: 69, data: [1, 2, 3], ext: false, rtr: false})

const output = files.temporary()
await files.createFile(output)

// Start can source with file target
const bridge = await actions.bridge.start({
Expand Down Expand Up @@ -86,7 +88,9 @@ export function createBidirectionalBridgeTest(
it(name, async () => {
const request = Message.fromJSON({id: 69, data: [1, 2, 3], ext: false, rtr: false})
const response = Message.fromJSON({id: 42, data: [4, 5, 6], ext: false, rtr: false})

const output = files.temporary()
await files.createFile(output)

// Receives "request" and returns "answer"
const receiver = can.createRawChannel(cans[1])
Expand Down
3 changes: 3 additions & 0 deletions tests/bus/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function createBusTest(name: string, busOptions: BusOptions, bridgeTarget

// Client 1
const file1 = files.temporary()
await files.createFile(file1)
const logger1 = await actions.bridge.start({
source: 'can',
sourceName: cans[0],
Expand All @@ -43,6 +44,7 @@ export function createBusTest(name: string, busOptions: BusOptions, bridgeTarget

// Client 2
const file2 = files.temporary()
await files.createFile(file2)
const logger2 = await actions.bridge.start({
source: 'can',
sourceName: cans[1],
Expand All @@ -57,6 +59,7 @@ export function createBusTest(name: string, busOptions: BusOptions, bridgeTarget

// Client 3
const file3 = files.temporary()
await files.createFile(file3)
const logger3 = await actions.bridge.start({
source: 'can',
sourceName: cans[2],
Expand Down

0 comments on commit b22e7be

Please sign in to comment.