diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/worker-that-requires-success.js b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/worker-that-requires-success.js
index cc93ffc8b720c4..eaa81595bd336f 100644
--- a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/worker-that-requires-success.js
+++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/worker-that-requires-success.js
@@ -5,8 +5,7 @@ test(() => {
const sab = new SharedArrayBuffer(16);
const ta = new Int32Array(sab);
- // Test passes if this doesn't throw
- Atomics.wait(ta, 0, 0, 10);
+ assert_equals(Atomics.wait(ta, 0, 0, 10), "ok");
}, `[[CanBlock]] in a ${self.constructor.name}`);
done();