Skip to content

Commit df8e3c8

Browse files
author
Marcin Tomczyk
committed
Add missing documentation about tls testing - review comments fixes
1 parent 4c3cca0 commit df8e3c8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

TESTS/netsocket/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -487,17 +487,17 @@ Call `Socket::open()` twice.
487487
1. Create an object by calling `new Socket()`.
488488
1. Call `Socket::open(stack)`.
489489
1. Call `Socket::open(stack)`.
490-
1. Delete the socket.
490+
1. Destroy the socket.
491491

492492
**Expected result:**
493493

494-
`Socket::open()` first returns `NSAPI_ERROR_OK` and then calls `NSAPI_ERROR_PARAMETER`.
494+
`Socket::open()` first call (socket was not opened) returns `NSAPI_ERROR_OK` and nexts calls (socet was opened by previous call Socket::open()) return `NSAPI_ERROR_PARAMETER`.
495495

496496
### SOCKET_OPEN_CLOSE_REPEAT
497497

498498
**Description:**
499499

500-
Call `Socket::open()` followed by `Socket::close()` and then again `Socket::open()`. This allows you to reuse the same object.
500+
Call `Socket::open()` followed by `Socket::close()` and then again `Socket::open()`. Should allows you to reuse the same object.
501501

502502
**Preconditions:**
503503

@@ -511,7 +511,7 @@ Call `Socket::open()` followed by `Socket::close()` and then again `Socket::open
511511
1. Call `Socket::close(stack)`.
512512
1. Call `Socket::open(stack)`.
513513
1. Call `Socket::close(stack)`.
514-
1. Delete the socket.
514+
1. Destroy the socket.
515515

516516
**Expected result:**
517517

@@ -1155,13 +1155,13 @@ Test whether you tolerate an endpoint closing the connection.
11551155
1. Call `TCPSocket::recv(<buffer>, 30);`.
11561156
1. Repeat until `recv()` returns 0.
11571157
1. Call `TCPSocket::close();`.
1158-
1. Delete the socket.
1158+
1. Destroy the socket.
11591159

11601160
**Expected result:**
11611161

11621162
Connect returns `NSAPI_ERROR_OK`.
11631163

1164-
The first `recv()` returns more that zero. Something between 10 and 30 bytes (datetime string).
1164+
The first `recv()` returns datetime string length (It is between 10 and 30 bytes).
11651165

11661166
The second `recv()` returns zero because the endpoint closed the connection. `close()` returns `NSAPI_ERROR_OK`.
11671167

@@ -1185,7 +1185,7 @@ Test you can request setting valid TCP keepalive values.
11851185
**Postconditions:**
11861186

11871187
1. Call `TCPSocket::close();`.
1188-
1. Delete the socket.
1188+
1. Destroy the socket.
11891189

11901190
**Expected result:**
11911191

@@ -1257,11 +1257,11 @@ Make an HTTP request to a closed socket.
12571257

12581258
### TLSSOCKET_SEND_REPEAT
12591259

1260-
**Description:** Run `SOCKET_SEND_REPEATÂ` for TLSSOCKET by using port number 2009.
1260+
**Description:** Run `SOCKET_SEND_REPEAT` for TLSSOCKET by using port number 2009.
12611261

12621262
### TLSSOCKET_SEND_TIMEOUT
12631263

1264-
**Description:** Run `SOCKET_SEND_TIMEOUTÂ` for TLSSOCKET by using port number 2009.
1264+
**Description:** Run `SOCKET_SEND_TIMEOUT` for TLSSOCKET by using port number 2009.
12651265

12661266
### TLSSOCKET_SEND_UNCONNECTED
12671267

@@ -1287,11 +1287,11 @@ Make an HTTP request to an unconnected socket.
12871287

12881288
### TLSSOCKET_ECHOTEST
12891289

1290-
**Description:** Run `SOCKET_ECHOTESTÂ` for TLSSOCKET by using port number 2007.
1290+
**Description:** Run `SOCKET_ECHOTEST` for TLSSOCKET by using port number 2007.
12911291

12921292
### TLSSOCKET_ECHOTEST_NONBLOCK
12931293

1294-
**Description:** Run `SOCKET_ECHOTEST_NONBLOCKÂ` for TLSSOCKET by using port number 2007.
1294+
**Description:** Run `SOCKET_ECHOTEST_NONBLOCK` for TLSSOCKET by using port number 2007.
12951295

12961296
### TLSSOCKET_ENDPOINT_CLOSE
12971297

@@ -1322,7 +1322,7 @@ Verify TLS Socket fails to connect without a certificate.
13221322

13231323
**Description:**
13241324

1325-
Run `TCPSOCKET_RECV_TIMEOUTÂ` for TLSSOCKET by using port number 2007.
1325+
Run `TCPSOCKET_RECV_TIMEOUT` for TLSSOCKET by using port number 2007.
13261326

13271327
### TLSSOCKET_SIMULTANEOUS_TEST
13281328

0 commit comments

Comments
 (0)