Report more cleanups from work in progress PRs
[poolifier.git] / tests / worker-files / thread / testWorker.js
index 369dbdba477bc8f7f60c50976fd513e387f5ed5e..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
 }