mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
more tests for SERVER-857
This commit is contained in:
parent
0b780fdcda
commit
c5d975b2b5
@ -3,4 +3,13 @@ assert(o.getTimestamp);
|
||||
|
||||
a = new ObjectId("4c17f616a707427266a2801a");
|
||||
b = new ObjectId("4c17f616a707428966a2801c");
|
||||
assert.eq(a.getTimestamp(), b.getTimestamp());
|
||||
assert.eq(a.getTimestamp(), b.getTimestamp() , "A" );
|
||||
|
||||
|
||||
a = new ObjectId()
|
||||
|
||||
x = Math.floor( (new Date()).getTime() / 1000 )
|
||||
y = Math.floor( a.getTimestamp().getTime() / 1000 )
|
||||
|
||||
assert.eq( x , y , "B" )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user