Skip to content

Commit b7caa54

Browse files
committed
tcp_client_hello_worldminor update
1 parent 11d0f51 commit b7caa54

File tree

1 file changed

+2
-4
lines changed
  • features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_hello_world

1 file changed

+2
-4
lines changed

features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,14 @@ int main() {
6767
TEST_ASSERT_TRUE(found_200_ok);
6868
TEST_ASSERT_TRUE(found_hello);
6969

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;
7371

7472
printf("HTTP: Received %d chars from server\r\n", ret);
7573
printf("HTTP: Received 200 OK status ... %s\r\n", found_200_ok ? "[OK]" : "[FAIL]");
7674
printf("HTTP: Received '%s' status ... %s\r\n", HTTP_HELLO_STR, found_hello ? "[OK]" : "[FAIL]");
7775
printf("HTTP: Received message:\r\n");
7876
printf("%s", buffer);
79-
sock.close();
77+
sock.close();
8078
}
8179
else {
8280
printf("HTTP: ERROR\r\n");

0 commit comments

Comments
 (0)