Skip to content

Commit 1ed64da

Browse files
committed
CXX-696: Add tests to verify spec compliance with unacknowledged write concerns.
1 parent cf96488 commit 1ed64da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mongo/client/write_concern_test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ TEST(WriteConcern, NeedsGLE) {
9292
TEST(WriteConcern, Unacknowledged) {
9393
ASSERT_FALSE(WriteConcern::unacknowledged.requiresConfirmation());
9494
ASSERT_EQUALS(WriteConcern::unacknowledged.nodes(), 0);
95+
96+
ASSERT_FALSE(WriteConcern().nodes(0).requiresConfirmation());
97+
98+
ASSERT_FALSE(WriteConcern().nodes(0).journal(false).requiresConfirmation());
99+
100+
ASSERT_FALSE(WriteConcern().nodes(0).timeout(100).requiresConfirmation());
95101
}
96102

97103
TEST(WriteConcern, Acknowledged) {

0 commit comments

Comments
 (0)