Skip to content

Commit

Permalink
Update serverTest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat authored Jan 6, 2025
1 parent 5153adb commit a9345e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/serverTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ for (const supportedVersion of mc.supportedVersions) {
})
})
function checkFinish () {
if (serverPlayerDisconnected && clientClosed && serverClosed) callOnce(done)
if (serverPlayerDisconnected && clientClosed && serverClosed) {
console.log('Kick test is done')
callOnce(done)
}
}
}).retries(2)

Expand Down Expand Up @@ -535,6 +538,7 @@ for (const supportedVersion of mc.supportedVersions) {
}

function callOnce (fn, ...args) {
console.log('Call Fn', fn.called)
if (fn.called) return
fn(...args)
fn.called = true
Expand Down

0 comments on commit a9345e2

Please sign in to comment.