Skip to content

Commit

Permalink
#1111: tests: fix a test failure exposed by gtest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Oct 16, 2020
1 parent 04d7e93 commit 6e40b2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/diagnostics/test_diagnostic_value.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ TEST_F(TestDiagnosticValue, test_diagnostic_value_2) {
ValueType snapshot = 0;

auto this_node = theContext()->getNode();
auto num_nodes = theContext()->getNumNodes();
if (num_nodes != 2) {
return;
}

double num_to_set = this_node == 0 ? 100 : 175;

Expand Down

0 comments on commit 6e40b2c

Please sign in to comment.