Skip to content

Commit 35b30de

Browse files
test: fix lingering chunk sizes
1 parent a5a4bb4 commit 35b30de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/suite/integration/devices.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ test("Can find devices", async () => {
5858
await device.disconnect()
5959
await device.connect()
6060
const withChunk = await timer(()=>device.runScript(script))
61-
await device._config.set({...device.config, adapterOptions: {}})
61+
await device._config.set({...device.config, adapterOptions: {chunkSize: null, chunkDelay: null}})
6262
await device.disconnect()
6363
await device.connect()
6464

6565
assert.equal(withChunk.result, 'Hello world. How are you today?')
6666
assert.equal(withoutChunk.result, 'Hello world. How are you today?')
67-
assert(withChunk.time > (withoutChunk.time * 2), `Chunking should be slower ${withChunk.time} > (${withoutChunk.time} * 2)`)
67+
assert(withChunk.time > (withoutChunk.time * 1.5), `Chunking should be slower ${withChunk.time} > (${withoutChunk.time} * 1.5)`)
6868
})
6969

7070
test("can disconnect", async () => {

0 commit comments

Comments
 (0)