Skip to content

Commit 4ade0bd

Browse files
committed
CMake: Fix DTLS socket unittest
- Binding the socket address into network stack to avoid socket connect API call hangs in the unittest
1 parent 452c45b commit 4ade0bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/test_DTLSSocket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ TEST_F(TestDTLSSocket, connect)
6262

6363
stack.return_value = NSAPI_ERROR_OK;
6464
SocketAddress a("127.0.0.1", 1024);
65+
stack.return_socketAddress = a;
6566
EXPECT_EQ(socket->connect(a), NSAPI_ERROR_OK);
6667
}

0 commit comments

Comments
 (0)