summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorslowy07 <slowy.arfy@gmail.com>2021-08-27 07:45:16 +0700
committerslowy07 <slowy.arfy@gmail.com>2021-08-27 07:45:16 +0700
commitfb113bb108e96de992d06dd6584fe5b7813aef45 (patch)
tree94c5c95fa7aab1ab043f9b7c04e3564f3710da2d /test
parenta69f8c8d598bc75dc3c3adb2059eda263d5437c1 (diff)
fix: typo spelling grammar
Diffstat (limited to 'test')
-rw-r--r--test/packetimpact/README.md8
-rw-r--r--test/packetimpact/tests/udp_icmp_error_propagation_test.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/packetimpact/README.md b/test/packetimpact/README.md
index fe0976ba5..3f0f9d155 100644
--- a/test/packetimpact/README.md
+++ b/test/packetimpact/README.md
@@ -16,7 +16,7 @@ Packetimpact aims to provide:
* A **multi-platform** solution that can test both Linux and gVisor.
* **Conciseness** on par with packetdrill scripts.
* **Control-flow** like for loops, conditionals, and variables.
-* **Flexibilty** to specify every byte in a packet or use multiple sockets.
+* **Flexibility** to specify every byte in a packet or use multiple sockets.
## How to run packetimpact tests?
@@ -177,7 +177,7 @@ message SocketResponse {
The test bench does most of the work in a test. It is a Go program that compiles
on the host and is copied by the script into test bench's container. It is a
regular [go unit test](https://golang.org/pkg/testing/) that imports the test
-bench framework. The test bench framwork is based on three basic utilities:
+bench framework. The test bench framework is based on three basic utilities:
* Commanding the DUT to run POSIX commands and return responses.
* Sending raw packets to the DUT on the test network.
@@ -475,9 +475,9 @@ type layerState interface {
// as it was sent is available.
sent(sent Layer) error
- // received updates the layerState based on a Layer that is receieved. The
+ // received updates the layerState based on a Layer that is received. The
// input is a Layer with all prev and next pointers populated so that the
- // entire frame as it was receieved is available.
+ // entire frame as it was received is available.
received(received Layer) error
// close frees associated resources held by the LayerState.
diff --git a/test/packetimpact/tests/udp_icmp_error_propagation_test.go b/test/packetimpact/tests/udp_icmp_error_propagation_test.go
index bb33ca4b3..556cee1d9 100644
--- a/test/packetimpact/tests/udp_icmp_error_propagation_test.go
+++ b/test/packetimpact/tests/udp_icmp_error_propagation_test.go
@@ -155,7 +155,7 @@ func testRecv(ctx context.Context, t *testing.T, d testData) {
// testSendTo tests observing the ICMP error through the send syscall. If
// wantErrno is non-zero, the first send should fail and a subsequent send
-// should suceed; while if wantErrno is zero then the first send should just
+// should succeed; while if wantErrno is zero then the first send should just
// succeed.
func testSendTo(ctx context.Context, t *testing.T, d testData) {
// Check that sending on the clean socket works.