Skip to content

Commit a056c50

Browse files
committed
faaslet: test potentially flaky test
1 parent 99c9850 commit a056c50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test/faaslet/test_exec_graph.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ TEST_CASE_METHOD(FunctionExecTestFixture,
5353
sch.callFunctions(req);
5454
faabric::Message result = sch.getFunctionResult(call, 5000);
5555
REQUIRE(result.returnvalue() == 0);
56+
for (const int msgId : faabric::util::getChainedFunctions(call)) {
57+
auto chainedResult = sch.getFunctionResult(call.appid(), msgId, 1000);
58+
REQUIRE(chainedResult.returnvalue() == 0);
59+
}
5660

57-
auto execGraph = faabric::util::getFunctionExecGraph(call);
61+
auto execGraph = faabric::util::getFunctionExecGraph(result);
5862
int numNodes = faabric::util::countExecGraphNodes(execGraph);
5963
REQUIRE(numNodes == expectedNumNodes);
6064
REQUIRE(execGraph.rootNode.msg.id() == call.id());

0 commit comments

Comments
 (0)