Skip to content
Snippets Groups Projects
Commit f06a5880 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[ReuseFutureTest] Do not reset the future on the last iteration

Resetting the Future on the last iteration may cause the assert that
the Future was never awaited to trigger (which is in the Future's destructor).
parent 09de534d
No related branches found
No related tags found
1 merge request!142Various test-runner improvements
......@@ -38,9 +38,11 @@ void emperTest() {
DIE_MSG_ERRNO("read failed");
}
if (i != ITERATIONS - 1) {
// reset the BPS used to signal the completion of this future
read_future.reset();
}
}
},
cps);
......@@ -53,9 +55,11 @@ void emperTest() {
DIE_MSG_ERRNO("write failed");
}
if (i != ITERATIONS - 1) {
// reset the BPS used to signal the completion of this future
write_future.reset();
}
}
},
cps);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment