diff options
Diffstat (limited to 'test/pummel/test-net-write-callbacks.js')
-rw-r--r-- | test/pummel/test-net-write-callbacks.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pummel/test-net-write-callbacks.js b/test/pummel/test-net-write-callbacks.js index 7c3df30f58..10aff09058 100644 --- a/test/pummel/test-net-write-callbacks.js +++ b/test/pummel/test-net-write-callbacks.js @@ -46,9 +46,10 @@ function makeCallback(c) { if (called) throw new Error(`called callback #${c} more than once`); called = true; - if (c < lastCalled) + if (c < lastCalled) { throw new Error( `callbacks out of order. last=${lastCalled} current=${c}`); + } lastCalled = c; cbcount++; }; |