aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-08-18 06:29:51 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-08-18 06:29:51 -0400
commit870fe69362f9225fa22de5ed3f0d8e2ecd02c3fb (patch)
tree57668f8cdede563747a23a16e19b6304683bf692
parenta5802792ec0d351920c9756a40ca4048d682e724 (diff)
downloadgit-bug-870fe69362f9225fa22de5ed3f0d8e2ecd02c3fb.tar.gz
fix(836): revert to older test harness
-rw-r--r--commands/ls_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/ls_test.go b/commands/ls_test.go
index 46728847..6e31ed83 100644
--- a/commands/ls_test.go
+++ b/commands/ls_test.go
@@ -74,12 +74,11 @@ $`
name := fmt.Sprintf("with %s format", testcase.format)
t.Run(name, func(t *testing.T) {
- env, _, _ := newTestEnvAndBug(t)
+ env, _ := newTestEnvAndBug(t)
require.NoError(t, runLs(env.env, opts, []string{}))
t.Log(env.out.String())
require.Regexp(t, testcase.exp, env.out.String())
- require.Equal(t, "", env.err.String())
})
}
@@ -90,13 +89,12 @@ $`
outputFormat: "json",
}
- env, _, _ := newTestEnvAndBug(t)
+ env, _ := newTestEnvAndBug(t)
require.NoError(t, runLs(env.env, opts, []string{}))
bugs := []JSONBugExcerpt{}
require.NoError(t, json.Unmarshal(env.out.Bytes(), &bugs))
- require.Empty(t, env.err.Bytes())
require.Len(t, bugs, 1)
})