Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 355e2ad

Browse files
author
Antti Yli-Tokola
committed
Fix valgrind finding in unit tests
1 parent 799120a commit 355e2ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mbed-client-mbed-tls/unittest/m2mconnectionsecuritypimpl_mbedtls/test_m2mconnectionsecuritypimpl_mbedtls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ void Test_M2MConnectionSecurityPimpl::test_start_connecting_non_blocking()
315315
void Test_M2MConnectionSecurityPimpl::test_continue_connecting()
316316
{
317317
M2MConnectionSecurityPimpl impl = M2MConnectionSecurityPimpl(M2MConnectionSecurity::TLS);
318-
318+
impl._ssl.state = MBEDTLS_SSL_HELLO_REQUEST;
319319
mbedtls_stub::expected_int = MBEDTLS_ERR_SSL_WANT_READ;
320320
CHECK( M2MConnectionHandler::CONNECTION_ERROR_WANTS_READ == impl.continue_connecting());
321321

0 commit comments

Comments
 (0)