Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Jan 16, 2025
1 parent 336750d commit c09a00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnovm/cmd/gno/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,11 @@ func TestValidateModulePath(t *testing.T) {
}

// using a regex due to avoid encoding issues.
matched, regexErr := regexp.MatchString(tt.wantErrRegex, err.Error())
re, regexErr := regexp.Compile(tt.wantErrRegex)
if regexErr != nil {
t.Fatalf("invalid regex pattern: %v", regexErr)
}
if !matched {
if !re.MatchString(err.Error()) {
t.Errorf("validateModulePath() error = %q, want error matching %q", err.Error(), tt.wantErrRegex)
}
})
Expand Down

0 comments on commit c09a00d

Please sign in to comment.