diff options
Diffstat (limited to 'src/mongo/db/logical_time_test.cpp')
-rw-r--r-- | src/mongo/db/logical_time_test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/logical_time_test.cpp b/src/mongo/db/logical_time_test.cpp index f0f0d7b4477..b55d4fee950 100644 --- a/src/mongo/db/logical_time_test.cpp +++ b/src/mongo/db/logical_time_test.cpp @@ -107,15 +107,19 @@ TEST(LogicalTime, toUnsignedArray) { TEST(SignedLogicalTime, roundtrip) { Timestamp tX(1); + std::array<std::uint8_t, 20> tempKey = {}; TimeProofService::Key key(std::move(tempKey)); TimeProofService tps(std::move(key)); auto time = LogicalTime(tX); auto proof = tps.getProof(time); - SignedLogicalTime signedTime(time, proof); + long long keyId = 1; + + SignedLogicalTime signedTime(time, proof, keyId); ASSERT_TRUE(time == signedTime.getTime()); ASSERT_TRUE(proof == signedTime.getProof()); + ASSERT_TRUE(keyId == signedTime.getKeyId()); } } // unnamed namespace |