From c09a00d57da68d2832cfb6c5db67eca8cce416d0 Mon Sep 17 00:00:00 2001 From: Lee ByeongJun Date: Thu, 16 Jan 2025 18:58:32 +0900 Subject: [PATCH] ci --- gnovm/cmd/gno/mod_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnovm/cmd/gno/mod_test.go b/gnovm/cmd/gno/mod_test.go index 5f9eb1bc8fb..fb835b5c15a 100644 --- a/gnovm/cmd/gno/mod_test.go +++ b/gnovm/cmd/gno/mod_test.go @@ -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) } })