Skip to content

Commit fa7547a

Browse files
author
Seppo Takalo
committed
Fix TCPSocket::accept() unittest.
accept() is not anymore returning NULL pointer. It was a bug.
1 parent 72233b0 commit fa7547a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNITTESTS/features/netsocket/TCPSocket/test_TCPSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ TEST_F(TestTCPSocket, accept)
271271
nsapi_error_t error;
272272
stack.return_value = NSAPI_ERROR_OK;
273273
socket->open((NetworkStack *)&stack);
274-
EXPECT_EQ(socket->accept(&error), static_cast<TCPSocket*>(NULL));
274+
EXPECT_NE(socket->accept(&error), static_cast<TCPSocket*>(NULL));
275275
EXPECT_EQ(error, NSAPI_ERROR_OK);
276276
}
277277

0 commit comments

Comments
 (0)