Commit edcddf3c authored by Steven's avatar Steven

chore: fix tests

parent fd29a98c
...@@ -48,6 +48,9 @@ func NewTestService(t *testing.T) *TestService { ...@@ -48,6 +48,9 @@ func NewTestService(t *testing.T) *TestService {
MarkdownService: markdownService, MarkdownService: markdownService,
} }
// Clear any cached state from previous tests
service.ClearInstanceOwnerCache()
return &TestService{ return &TestService{
Service: service, Service: service,
Store: testStore, Store: testStore,
...@@ -58,8 +61,8 @@ func NewTestService(t *testing.T) *TestService { ...@@ -58,8 +61,8 @@ func NewTestService(t *testing.T) *TestService {
// Cleanup clears caches and closes resources after test. // Cleanup clears caches and closes resources after test.
func (ts *TestService) Cleanup() { func (ts *TestService) Cleanup() {
ts.Service.ClearInstanceOwnerCache()
ts.Store.Close() ts.Store.Close()
// Note: Owner cache is package-level in parent package, cannot clear from test package
} }
// CreateHostUser creates an admin user for testing. // CreateHostUser creates an admin user for testing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment