auto result = command_future_->wait_for(std::chrono::milliseconds(1000));
EXPECT_NE(std::future_status::timeout, result);
}
- if (command_queue_.empty()) {
- return ConnectionManagementCommandView::Create(
- CommandPacketView::Create(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())));
- }
+ ASSERT_LOG(
+ !command_queue_.empty(), "Expecting command %s but command queue was empty", OpCodeText(op_code).c_str());
CommandPacketView command_packet_view = GetLastCommand();
EXPECT_TRUE(command_packet_view.IsValid());
EXPECT_EQ(command_packet_view.GetOpCode(), op_code);