Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 20, 2024
1 parent 4800c6e commit cdc4c8e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cpp/test/controller_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ TEST(ControllerTest, Reset)

auto bus = BusFactory::Instance().CreateBus(true, true);
auto controller = make_shared<Controller>(*bus, TARGET_ID);
auto device = make_shared<MockPrimaryDevice>(0);

controller->Init();
controller->AddDevice(device);

controller->ProcessOnController((1 << TARGET_ID) + (1 << INITIATOR_ID));
EXPECT_EQ(INITIATOR_ID, controller->GetInitiatorId());
Expand All @@ -36,10 +34,8 @@ TEST(ControllerTest, GetInitiatorId)

auto bus = BusFactory::Instance().CreateBus(true, true);
auto controller = make_shared<Controller>(*bus, TARGET_ID);
auto device = make_shared<MockPrimaryDevice>(0);

controller->Init();
controller->AddDevice(device);

controller->ProcessOnController((1 << TARGET_ID) + (1 << INITIATOR_ID));
EXPECT_EQ(INITIATOR_ID, controller->GetInitiatorId());
Expand Down

0 comments on commit cdc4c8e

Please sign in to comment.