don't serialize event
diff --git a/tests/run.mjs b/tests/run.mjs
index 3001639..af6c748 100644
--- a/tests/run.mjs
+++ b/tests/run.mjs
@@ -83,7 +83,7 @@
     try {
         await driver.get(`http://localhost:${PORT}/index.html?worstCaseCount=2&iterationCount=3`);
         await driver.executeAsyncScript((callback) => {
-            globalThis.addEventListener("JetStreamReady", callback);
+            globalThis.addEventListener("JetStreamReady", () => callback());
             // We might not get a chance to install the on-ready listener, thus
             // we also check if the runner is ready synchronously.
             if (globalThis?.JetStream?.isReady)