mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
DDS plugin: Adapt command ui to changes in DDS plugin
* Add COMPLETE INIT support * Add -n option, shall be replaced with inspecting DDS topo spec in the future * Update DDS example to work again
This commit is contained in:
committed by
Dennis Klein
parent
b54df715ea
commit
6c07920fc6
@@ -43,7 +43,7 @@ TEST_F(Topology, ChangeStateAsync)
|
||||
|
||||
Topology topo(mDDSTopo, mDDSSession);
|
||||
fair::mq::tools::Semaphore blocker;
|
||||
topo.ChangeState(TopologyTransition::Run, [&blocker, &topo](Topology::ChangeStateResult result) {
|
||||
topo.ChangeState(TopologyTransition::InitDevice, [&blocker, &topo](Topology::ChangeStateResult result) {
|
||||
LOG(info) << result;
|
||||
EXPECT_EQ(result.rc, fair::mq::AsyncOpResultCode::Ok);
|
||||
EXPECT_NO_THROW(fair::mq::sdk::AggregateState(result.state));
|
||||
@@ -51,14 +51,6 @@ TEST_F(Topology, ChangeStateAsync)
|
||||
blocker.Signal();
|
||||
});
|
||||
blocker.Wait();
|
||||
topo.ChangeState(TopologyTransition::Stop, [&blocker, &topo](Topology::ChangeStateResult result) {
|
||||
LOG(info) << result;
|
||||
EXPECT_EQ(result.rc, fair::mq::AsyncOpResultCode::Ok);
|
||||
EXPECT_NO_THROW(fair::mq::sdk::AggregateState(result.state));
|
||||
EXPECT_EQ(fair::mq::sdk::StateEqualsTo(result.state, fair::mq::sdk::DeviceState::Ready), true);
|
||||
blocker.Signal();
|
||||
});
|
||||
blocker.Wait();
|
||||
}
|
||||
|
||||
TEST_F(Topology, ChangeStateSync)
|
||||
|
Reference in New Issue
Block a user