Skip to content

Commit c2f12a5

Browse files
alacukuloresuso
authored andcommitted
chore(tests): update tests based on the latest changes
Signed-off-by: Aldo Lacuku <[email protected]> Co-authored-by: Lorenzo Susini <[email protected]>
1 parent 2501d18 commit c2f12a5

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

cmd/cli_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package cmd
1616

1717
import (
1818
"bytes"
19+
"context"
1920
"io/ioutil"
2021
"os"
2122
"path/filepath"
@@ -71,7 +72,7 @@ var tests = []testCase{
7172

7273
func run(t *testing.T, test testCase) {
7374
// Setup
74-
c := New()
75+
c := New(context.Background())
7576
o := bytes.NewBufferString("")
7677
c.SetOut(o)
7778
c.SetErr(o)

cmd/testdata/help.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Available Commands:
88
help Help about any command
99
install Install a component with falcoctl
1010
registry Interact with OCI registries
11-
search Search a component with falcoctl
1211
version Print the falcoctl version information
1312

1413
Flags:

cmd/testdata/noargsnoflags.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Available Commands:
88
help Help about any command
99
install Install a component with falcoctl
1010
registry Interact with OCI registries
11-
search Search a component with falcoctl
1211
version Print the falcoctl version information
1312

1413
Flags:

cmd/testdata/wrongflag.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Available Commands:
77
help Help about any command
88
install Install a component with falcoctl
99
registry Interact with OCI registries
10-
search Search a component with falcoctl
1110
version Print the falcoctl version information
1211

1312
Flags:

0 commit comments

Comments
 (0)