Skip to content

Commit

Permalink
CXX-1053 Fix disengaged optional deref in 65e0c21
Browse files Browse the repository at this point in the history
  • Loading branch information
jrassi committed Nov 29, 2016
1 parent 65e0c21 commit 22f6034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mongocxx/test/options/create_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ TEST_CASE("create_collection accessors/mutators", "[create_collection]") {
SECTION("has a method to set the validation_criteria") {
cc.validation_criteria(validation);
REQUIRE(*cc.validation_criteria()->rule() == *validation.rule());
REQUIRE(*cc.validation_criteria()->level() == *validation.level());
REQUIRE(*cc.validation_criteria()->action() == *validation.action());
REQUIRE(!cc.validation_criteria()->level());
REQUIRE(!cc.validation_criteria()->action());
}
}

Expand Down

0 comments on commit 22f6034

Please sign in to comment.