diff --git a/test/OperationTest.cpp b/test/OperationTest.cpp index a0f0b13e3c..0e93b8e9fc 100644 --- a/test/OperationTest.cpp +++ b/test/OperationTest.cpp @@ -170,10 +170,11 @@ TEST_F(OperationTestFixture, getPrecomputedResultBecauseSiblingOfService) { auto idTable = makeIdTableFromVector({{1, 6, 0}, {2, 5, 0}, {3, 4, 0}}); auto result = std::make_shared( idTable.clone(), std::vector{0}, LocalVocab{}); - operation.precomputedResultBecauseSiblingOfService_ = + operation.precomputedResultBecauseSiblingOfService() = std::make_optional(result); EXPECT_EQ(operation.getResult(), result); - EXPECT_FALSE(operation.precomputedResultBecauseSiblingOfService_.has_value()); + EXPECT_FALSE( + operation.precomputedResultBecauseSiblingOfService().has_value()); } // _____________________________________________________________________________