chore(go): inject stdin and pass rc force explicitly
This commit is contained in:
@@ -13,7 +13,7 @@ func TestRunVersionCommand(t *testing.T) {
|
||||
stdout := &bytes.Buffer{}
|
||||
stderr := &bytes.Buffer{}
|
||||
|
||||
exitCode := run([]string{"version"}, stdout, stderr)
|
||||
exitCode := run([]string{"version"}, bytes.NewBuffer(nil), stdout, stderr)
|
||||
if exitCode != 0 {
|
||||
t.Fatalf("run(version) exit code = %d, want 0", exitCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user