Skip to content

Commit 3b8b9d6

Browse files
author
Arto Kinnunen
committed
Fix RTT/stagger API unit tests
Adjust RTT/stagger API unit tests to work in mbed-os-5.15 branch.
1 parent 77f268e commit 3b8b9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNITTESTS/features/netsocket/InternetSocket/test_InternetSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ TEST_F(TestInternetSocket, network_property)
191191
uint32_t rtt_estimate;
192192
uint16_t stagger_min, stagger_max, stagger_rand;
193193
stack.return_value = NSAPI_ERROR_OK;
194-
socket->open(&stack);
194+
socket->open((NetworkStack *)&stack);
195195
EXPECT_EQ(socket->get_rtt_estimate_to_address(a, &rtt_estimate), NSAPI_ERROR_UNSUPPORTED);
196196
EXPECT_EQ(socket->get_rtt_estimate_to_address(a, NULL), NSAPI_ERROR_PARAMETER);
197197
EXPECT_EQ(socket->get_stagger_estimate_to_address(a, 1, &stagger_min, &stagger_max, &stagger_rand), NSAPI_ERROR_UNSUPPORTED);

0 commit comments

Comments
 (0)