File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_hello_world Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,14 @@ int main() {
67
67
TEST_ASSERT_TRUE (found_200_ok);
68
68
TEST_ASSERT_TRUE (found_hello);
69
69
70
- result = true ;
71
- if (!found_200_ok) result = false ;
72
- if (!found_hello) result = false ;
70
+ if (found_200_ok && found_hello) result = true ;
73
71
74
72
printf (" HTTP: Received %d chars from server\r\n " , ret);
75
73
printf (" HTTP: Received 200 OK status ... %s\r\n " , found_200_ok ? " [OK]" : " [FAIL]" );
76
74
printf (" HTTP: Received '%s' status ... %s\r\n " , HTTP_HELLO_STR, found_hello ? " [OK]" : " [FAIL]" );
77
75
printf (" HTTP: Received message:\r\n " );
78
76
printf (" %s" , buffer);
79
- sock.close ();
77
+ sock.close ();
80
78
}
81
79
else {
82
80
printf (" HTTP: ERROR\r\n " );
You can’t perform that action at this time.
0 commit comments