Skip to content

Commit 24a9776

Browse files
committed
✅ test: fix unit tests error and update github action config
1 parent d5d4905 commit 24a9776

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,5 @@ jobs:
6161

6262
- name: Run tests
6363
run: |
64-
pwd
65-
go test -v -cover ./...
64+
go test -cover ./...
6665
# go run ./cmd/chlog last head

info_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ func testBranchInfosSearchV2(bis *gitw.BranchInfos, t *testing.T) {
185185
mch := brinfo.NewGlobMatch("*new*")
186186
opt := &gitw.SearchOpt{Limit: 5, Flag: gitw.BrSearchAll}
187187
rets := bis.SearchV2(mch, opt)
188-
assert.Len(t, rets, 3)
188+
assert.Len(t, rets, 4)
189189

190190
// search v2 use glob on local
191191
opt.Flag = gitw.BrSearchLocal
192192
mch = brinfo.NewGlobMatch("*new*")
193193
rets = bis.SearchV2(mch, opt)
194-
assert.Len(t, rets, 1)
194+
assert.Len(t, rets, 2)
195195

196196
// search v2 use contains
197197
mch = brinfo.NewContainsMatch("new")

0 commit comments

Comments
 (0)