grim/hgkeeper

Fix the unit tests

12 months ago, Gary Kramlich
9f9a854ed3b3
Parents 5f030be0a76c
Children 4ec99415f32b
Fix the unit tests
--- a/ssh/commands/commands_test.go Thu Apr 13 00:10:58 2023 -0500
+++ b/ssh/commands/commands_test.go Thu Apr 13 00:18:27 2023 -0500
@@ -4,6 +4,8 @@
"testing"
"github.com/stretchr/testify/assert"
+
+ "keep.imfreedom.org/grim/hgkeeper/access"
)
type testCase struct {
@@ -17,15 +19,15 @@
cases := []testCase{
{
"hg serve --stdio",
- NewServe("repos", ""),
+ NewServe(access.NormalizeRepo("repos", "")),
},
{
"hg -R foo serve --stdio",
- NewServe("repos", "foo"),
+ NewServe(access.NormalizeRepo("repos", "foo")),
},
{
"hg -R foo/bar serve --stdio",
- NewServe("repos", "foo/bar"),
+ NewServe(access.NormalizeRepo("repos", "foo/bar")),
},
}