```
internal/test/environment/environment.go:37:23: `useing` is a misspelling of `using`(misspell)
integration/container/wait_test.go:49:9: `waitres` is a misspelling of `waiters`(misspell)
integration/container/wait_test.go:95:9: `waitres` is a misspelling of `waiters`(misspell)
integration-cli/docker_api_containers_test.go:1042:7: `waitres` is a misspelling of `waiters`(misspell)
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -994,13 +994,13 @@ func (s *DockerSuite) TestContainerAPIWait(c *testing.T) {
|
| 994 | 994 |
assert.NilError(c, err) |
| 995 | 995 |
defer cli.Close() |
| 996 | 996 |
|
| 997 |
- waitresC, errC := cli.ContainerWait(context.Background(), name, "") |
|
| 997 |
+ waitResC, errC := cli.ContainerWait(context.Background(), name, "") |
|
| 998 | 998 |
|
| 999 | 999 |
select {
|
| 1000 | 1000 |
case err = <-errC: |
| 1001 | 1001 |
assert.NilError(c, err) |
| 1002 |
- case waitres := <-waitresC: |
|
| 1003 |
- assert.Equal(c, waitres.StatusCode, int64(0)) |
|
| 1002 |
+ case waitRes := <-waitResC: |
|
| 1003 |
+ assert.Equal(c, waitRes.StatusCode, int64(0)) |
|
| 1004 | 1004 |
} |
| 1005 | 1005 |
} |
| 1006 | 1006 |
|
| ... | ... |
@@ -42,12 +42,12 @@ func TestWaitNonBlocked(t *testing.T) {
|
| 42 | 42 |
containerID := container.Run(ctx, t, cli, container.WithCmd("sh", "-c", tc.cmd))
|
| 43 | 43 |
poll.WaitOn(t, container.IsInState(ctx, cli, containerID, "exited"), poll.WithTimeout(30*time.Second), poll.WithDelay(100*time.Millisecond)) |
| 44 | 44 |
|
| 45 |
- waitresC, errC := cli.ContainerWait(ctx, containerID, "") |
|
| 45 |
+ waitResC, errC := cli.ContainerWait(ctx, containerID, "") |
|
| 46 | 46 |
select {
|
| 47 | 47 |
case err := <-errC: |
| 48 | 48 |
assert.NilError(t, err) |
| 49 |
- case waitres := <-waitresC: |
|
| 50 |
- assert.Check(t, is.Equal(tc.expectedCode, waitres.StatusCode)) |
|
| 49 |
+ case waitRes := <-waitResC: |
|
| 50 |
+ assert.Check(t, is.Equal(tc.expectedCode, waitRes.StatusCode)) |
|
| 51 | 51 |
} |
| 52 | 52 |
}) |
| 53 | 53 |
} |
| ... | ... |
@@ -84,7 +84,7 @@ func TestWaitBlocked(t *testing.T) {
|
| 84 | 84 |
containerID := container.Run(ctx, t, cli, container.WithCmd("sh", "-c", tc.cmd))
|
| 85 | 85 |
poll.WaitOn(t, container.IsInState(ctx, cli, containerID, "running"), poll.WithTimeout(30*time.Second), poll.WithDelay(100*time.Millisecond)) |
| 86 | 86 |
|
| 87 |
- waitresC, errC := cli.ContainerWait(ctx, containerID, "") |
|
| 87 |
+ waitResC, errC := cli.ContainerWait(ctx, containerID, "") |
|
| 88 | 88 |
|
| 89 | 89 |
err := cli.ContainerStop(ctx, containerID, nil) |
| 90 | 90 |
assert.NilError(t, err) |
| ... | ... |
@@ -92,8 +92,8 @@ func TestWaitBlocked(t *testing.T) {
|
| 92 | 92 |
select {
|
| 93 | 93 |
case err := <-errC: |
| 94 | 94 |
assert.NilError(t, err) |
| 95 |
- case waitres := <-waitresC: |
|
| 96 |
- assert.Check(t, is.Equal(tc.expectedCode, waitres.StatusCode)) |
|
| 95 |
+ case waitRes := <-waitResC: |
|
| 96 |
+ assert.Check(t, is.Equal(tc.expectedCode, waitRes.StatusCode)) |
|
| 97 | 97 |
case <-time.After(2 * time.Second): |
| 98 | 98 |
t.Fatal("timeout waiting for `docker wait`")
|
| 99 | 99 |
} |
| ... | ... |
@@ -34,7 +34,7 @@ type PlatformDefaults struct {
|
| 34 | 34 |
} |
| 35 | 35 |
|
| 36 | 36 |
// New creates a new Execution struct |
| 37 |
-// This is configured useing the env client (see client.FromEnv) |
|
| 37 |
+// This is configured using the env client (see client.FromEnv) |
|
| 38 | 38 |
func New() (*Execution, error) {
|
| 39 | 39 |
c, err := client.NewClientWithOpts(client.FromEnv) |
| 40 | 40 |
if err != nil {
|