Skip to content

Commit

Permalink
✅ test: fix unit tests error and update github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 19, 2023
1 parent d5d4905 commit 24a9776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@ jobs:

- name: Run tests
run: |
pwd
go test -v -cover ./...
go test -cover ./...
# go run ./cmd/chlog last head
4 changes: 2 additions & 2 deletions info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ func testBranchInfosSearchV2(bis *gitw.BranchInfos, t *testing.T) {
mch := brinfo.NewGlobMatch("*new*")
opt := &gitw.SearchOpt{Limit: 5, Flag: gitw.BrSearchAll}
rets := bis.SearchV2(mch, opt)
assert.Len(t, rets, 3)
assert.Len(t, rets, 4)

// search v2 use glob on local
opt.Flag = gitw.BrSearchLocal
mch = brinfo.NewGlobMatch("*new*")
rets = bis.SearchV2(mch, opt)
assert.Len(t, rets, 1)
assert.Len(t, rets, 2)

// search v2 use contains
mch = brinfo.NewContainsMatch("new")
Expand Down

0 comments on commit 24a9776

Please sign in to comment.