Report more cleanups from work in progress PRs
[poolifier.git] / tests / worker-files / thread / testWorker.js
index c70069c7269f17d2f83069554d0e3fba5d2a15e6..ccf55b56ba92d29e3848ecf0d19d37fe39f068e9 100644 (file)
@@ -1,14 +1,10 @@
 'use strict'
 const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
 const { isMainThread } = require('worker_threads')
+const TestUtils = require('../../test-utils')
 
 function test (data) {
-  for (let i = 0; i <= 50; i++) {
-    const o = {
-      a: i
-    }
-    JSON.stringify(o)
-  }
+  TestUtils.jsonIntegerSerialization(50)
   return isMainThread
 }