Skip to content

Commit 644391e

Browse files
Copilotbartlomieju
andcommitted
Improve test assertion readability
Co-authored-by: bartlomieju <13602871+bartlomieju@users.noreply.github.com>
1 parent 20ee3d9 commit 644391e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit_node/internal/_randomBytes_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Deno.test("randomBytes buffer has correct byteLength and unique values", functio
102102
// While extremely unlikely to be identical by chance, this tests the fix
103103
// for the bug where all values were the same due to shared pool
104104
assert(
105-
val1 !== val2 || val2 !== val3,
105+
!(val1 === val2 && val2 === val3),
106106
"random values should not all be identical (was caused by shared buffer pool)",
107107
);
108108
});

0 commit comments

Comments
 (0)