From d304add5d673effb727c208bb26c3b0b44416e1c Mon Sep 17 00:00:00 2001 From: RoccoSmit Date: Sun, 3 Nov 2024 23:23:18 +1100 Subject: [PATCH] Update test to test for version number set in version.go --- test/store/migrator_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/store/migrator_test.go b/test/store/migrator_test.go index 155c4037..994d0509 100644 --- a/test/store/migrator_test.go +++ b/test/store/migrator_test.go @@ -5,6 +5,7 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/usememos/memos/server/version" ) func TestGetCurrentSchemaVersion(t *testing.T) { @@ -13,5 +14,5 @@ func TestGetCurrentSchemaVersion(t *testing.T) { currentSchemaVersion, err := ts.GetCurrentSchemaVersion() require.NoError(t, err) - require.Equal(t, "0.23.0", currentSchemaVersion) + require.Equal(t, version.Version, currentSchemaVersion) }