Skip to content

Commit

Permalink
test: fix assertion argument order in test-buffer-failed-alloc-type
Browse files Browse the repository at this point in the history
PR-URL: nodejs#28349
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
RamirezAlex authored and Trott committed Jun 24, 2019
1 parent 6f5b5d1 commit ad8456b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-buffer-failed-alloc-typed-arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ for (const allocator of allocators) {
// Uint32Array should still produce a zeroed out result.
allocator(size);
} catch {
assert.deepStrictEqual(new Uint32Array(10), zeroArray);
assert.deepStrictEqual(zeroArray, new Uint32Array(10));
}
}
}

0 comments on commit ad8456b

Please sign in to comment.