Commit bac8991f authored by Dominik Charousset's avatar Dominik Charousset

Improve coverage for the never operator

parent 68aed3b2
......@@ -34,8 +34,9 @@ SCENARIO("the never operator never invokes callbacks except when disposed") {
ctx->run();
CHECK(snk1->buf.empty());
CHECK_EQ(snk1->state, flow::observer_state::subscribed);
sub1.dispose();
sub1.ptr()->dispose();
ctx->run();
CHECK(sub1.ptr()->disposed());
CHECK_EQ(snk1->state, flow::observer_state::completed);
MESSAGE("dispose only affects the subscription, "
"the never operator remains unchanged");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment