-const WorkerFunctions = require('./test-types')
+const { WorkerFunctions } = require('./test-types')
class TestUtils {
static async waitExits (pool, numberOfExitEventsToWait) {
})
}
+ static generateRandomInteger (max = Number.MAX_SAFE_INTEGER, min = 0) {
+ max = Math.floor(max)
+ if (min) {
+ min = Math.ceil(min)
+ return Math.floor(Math.random() * (max - min + 1)) + min
+ }
+ return Math.floor(Math.random() * (max + 1))
+ }
+
static jsonIntegerSerialization (n) {
for (let i = 0; i < n; i++) {
const o = {