Skip to content

Commit

Permalink
Added assert that remote device is not nullptr.
Browse files Browse the repository at this point in the history
(cherry picked from commit 07f2c43)
  • Loading branch information
Dimi1010 committed May 27, 2024
1 parent 6dee560 commit b5be879
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/Pcap++Test/Tests/LiveDeviceTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ PTF_TEST_CASE(TestRemoteCapture)
PTF_ASSERT_EQUAL(remoteDevices->getRemoteMachinePort(), remoteDevicePort);

pcpp::PcapRemoteDevice* remoteDevice = remoteDevices->getRemoteDeviceByIP(remoteDeviceIPAddr);
PTF_ASSERT_NOT_NULL(remoteDevice);
PTF_ASSERT_EQUAL(remoteDevice->getDeviceType(), pcpp::PcapLiveDevice::RemoteDevice, enum);
PTF_ASSERT_EQUAL(remoteDevice->getMtu(), 0);
pcpp::Logger::getInstance().suppressLogs();
Expand Down

0 comments on commit b5be879

Please sign in to comment.