From 1257337765dcf056a11a422b4fc629a13d02e5fe Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 24 Jul 2024 08:26:24 +0800 Subject: [PATCH] fix error handling in SUI core tests --- sui/storages/local/page_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sui/storages/local/page_test.go b/sui/storages/local/page_test.go index e632b40a..cd6a7d21 100644 --- a/sui/storages/local/page_test.go +++ b/sui/storages/local/page_test.go @@ -109,7 +109,7 @@ func TestTemplatePageTS(t *testing.T) { assert.NotEmpty(t, page.Codes.DATA.Code) _, err = tmpl.Page("/the/page/could/not/be/found") - assert.Contains(t, err.Error(), "Page /the/page/could/not/be/found not found") + assert.Contains(t, err.Error(), "/the/page/could/not/be/found not found") } func TestTemplatePageJS(t *testing.T) { @@ -144,7 +144,7 @@ func TestTemplatePageJS(t *testing.T) { assert.NotEmpty(t, page.Codes.DATA.Code) _, err = tmpl.Page("/the/page/could/not/be/found") - assert.Contains(t, err.Error(), "Page /the/page/could/not/be/found not found") + assert.Contains(t, err.Error(), "/the/page/could/not/be/found not found") } func TestPageSaveTempBoard(t *testing.T) {