summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-03-16 16:58:30 +0100
committerValery Piashchynski <[email protected]>2022-03-16 16:58:30 +0100
commit1dc35f2de98daf86aeefea438ea5051378c8a0f9 (patch)
treef5ddb79eb8cf0277b158b78bef6577e87184d953 /cmd
parentcc7e25981feb1f0df4f0ba632ff238114dfc2820 (diff)
cmd: update tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/command_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/rr/command_test.go b/cmd/rr/command_test.go
index 0e111f4b..84eef9d7 100644
--- a/cmd/rr/command_test.go
+++ b/cmd/rr/command_test.go
@@ -11,7 +11,7 @@ import (
)
func Test_Main(t *testing.T) {
- os.Args = []string{"", "--help"}
+ os.Args = []string{"rr", "--help"}
exitFn = func(code int) { assert.Equal(t, 0, code) }
r, w, err := os.Pipe()
@@ -30,7 +30,7 @@ func Test_Main(t *testing.T) {
}
func Test_MainWithoutCommands(t *testing.T) {
- os.Args = []string{""}
+ os.Args = []string{"rr"}
exitFn = func(code int) { assert.Equal(t, 0, code) }
r, w, err := os.Pipe()