bedrock-protocol/test/internal.test.js
extremeheat c51b55d4c7
Make CI less flaky (#293)
* add debug code to server start

* Reduce number of versions tested on Github Action CI to speed up tests

* test: Ask OS for free port instead of random int
2022-10-04 02:47:06 -04:00

18 lines
484 B
JavaScript

/* eslint-env jest */
const { timedTest } = require('./internal')
const { testedVersions } = require('../src/options')
const { sleep } = require('../src/datatypes/util')
describe('internal client/server test', function () {
const vcount = testedVersions.length
this.timeout(vcount * 80 * 1000)
for (const version of testedVersions) {
it('connects ' + version, async () => {
console.debug(version)
await timedTest(version)
await sleep(100)
})
}
})