Skip to content

Commit d5002f2

Browse files
committed
test: refactor tests and update CI configurations
- Change the CORS test to only check for an error instead of matching the exact error message Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent eac6c48 commit d5002f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cors_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func TestValidateTauri(t *testing.T) {
277277
AllowBrowserExtensions: true,
278278
}
279279
err := c.Validate()
280-
assert.Equal(t, err.Error(), "bad origin: origins must contain '*' or include http://,https://,chrome-extension://,safari-extension://,moz-extension://,ms-browser-extension://")
280+
assert.Error(t, err)
281281

282282
c = Config{
283283
AllowOrigins: []string{"tauri://localhost:1234"},

0 commit comments

Comments
 (0)