Skip to content

Commit 55f529c

Browse files
authored
chore: Sync BSON Corpus spec tests (#373)
NODE-2681 NODE-2683
1 parent 5e35d1a commit 55f529c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/node/bson_corpus_tests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ const skipBSON = {
5858

5959
const skipExtendedJSON = {
6060
'Timestamp with high-order bit set on both seconds and increment':
61+
'Current BSON implementation of timestamp/long cannot hold these values - 1 too large.',
62+
'Timestamp with high-order bit set on both seconds and increment (not UINT32_MAX)':
6163
'Current BSON implementation of timestamp/long cannot hold these values - 1 too large.'
6264
};
6365

test/node/specs/bson-corpus/timestamp.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
"description": "Timestamp with high-order bit set on both seconds and increment",
1919
"canonical_bson": "10000000116100FFFFFFFFFFFFFFFF00",
2020
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4294967295, \"i\" : 4294967295} } }"
21+
},
22+
{
23+
"description": "Timestamp with high-order bit set on both seconds and increment (not UINT32_MAX)",
24+
"canonical_bson": "1000000011610000286BEE00286BEE00",
25+
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4000000000, \"i\" : 4000000000} } }"
2126
}
2227
],
2328
"decodeErrors": [

0 commit comments

Comments
 (0)