Skip to content

Commit

Permalink
Fix typo in test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Sep 14, 2023
1 parent 220806f commit fec33ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/get_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cmd

import (
"context"
"strings"
"testing"
)
Expand All @@ -24,7 +23,7 @@ func Test_GetCommandWithInvalidArch(t *testing.T) {
for _, tc := range tests {
cmd := MakeGet()
cmd.SetArgs(tc.args)
err := cmd.Execute(context.Background())
err := cmd.Execute()

if !strings.Contains(err.Error(), tc.wantError) {
t.Fatalf("for args %q\n want: %q\n but got: %q", tc.args, tc.wantError, err)
Expand Down

0 comments on commit fec33ae

Please sign in to comment.