Skip to content

Commit

Permalink
test(maven): clear error cache before unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Jul 16, 2024
1 parent 24d6032 commit d8e0ae7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/maven/mvn_cmd_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import (
)

func TestCheckMvnCommandNoBuild(t *testing.T) {
cachedMvnCommandResult = nil
_, e := CheckMvnCommand(context.TODO(), true)
assert.ErrorIs(t, e, ErrMvnDisabled)
}

func TestCheckMvnCommand(t *testing.T) {
cachedMvnCommandResult = nil
info, e := CheckMvnCommand(context.TODO(), false)
if errors.Is(e, ErrMvnNotFound) {
t.SkipNow()
Expand Down

0 comments on commit d8e0ae7

Please sign in to comment.