From d5002f2d7c357bfb800914c4eef2061ff7e196d0 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 6 Mar 2024 13:34:37 +0800 Subject: [PATCH] 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 --- cors_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cors_test.go b/cors_test.go index 5ac770c..a6c69ad 100644 --- a/cors_test.go +++ b/cors_test.go @@ -277,7 +277,7 @@ func TestValidateTauri(t *testing.T) { AllowBrowserExtensions: true, } err := c.Validate() - assert.Equal(t, err.Error(), "bad origin: origins must contain '*' or include http://,https://,chrome-extension://,safari-extension://,moz-extension://,ms-browser-extension://") + assert.Error(t, err) c = Config{ AllowOrigins: []string{"tauri://localhost:1234"},