Skip to content

Commit c29e0e5

Browse files
committed
wip
1 parent aca104e commit c29e0e5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test/mcbedrock.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ describe('mcbedrock', function () {
77
this.timeout(18000 * 10)
88

99
for (const version of SUPPORTED_VERSIONS) {
10-
it('works on ' + version, () => test(version))
10+
it('works on ' + version, async () => {
11+
await test(version)
12+
await new Promise(resolve => setTimeout(resolve, 100))
13+
})
1114
}
1215
})

test/util/collectBedrockPackets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function collectPackets (version, names = ['start_game'], cb) {
2828
let clientConnected = false
2929

3030
return new Promise((resolve, reject) => {
31-
const timeoutId = setTimeout(reject, 9000)
31+
const timeoutId = setTimeout(()=> reject('time out', version), 9000)
3232

3333
client.on('join', () => {
3434
console.log('[client] Client connected')
@@ -49,7 +49,7 @@ async function collectPackets (version, names = ['start_game'], cb) {
4949

5050
client.on('packet', ({ name }) => debug('[client] -> ', name))
5151
}).catch((error) => {
52-
console.error(error)
52+
console.error('error', error)
5353
}).finally(async () => {
5454
stopServer()
5555
})

0 commit comments

Comments
 (0)