fix(tests): add ResetStuckSummoning stub to agent store mocks

Add missing ResetStuckSummoning method stub to mock AgentStore
implementations in test files. Follows from recent agent recovery
feature (d7342fbd) which added this method to the AgentStore interface
but missed updating these 4 test mock implementations.
This commit is contained in:
viettranx committed 2026-04-17 19:50:11 +07:00
1 parent 4198084050
commit 83e4f8b907
4 files changed
+6

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ func (s *seedStubStore) Update(_ context.Context, _ uuid.UUID, _ map[string]any)
func (s *seedStubStore) Delete(_ context.Context, _ uuid.UUID) error { return nil }
func (s *seedStubStore) List(_ context.Context, _ string) ([]store.AgentData, error) { return nil, nil }
func (s *seedStubStore) GetDefault(_ context.Context) (*store.AgentData, error) { return nil, nil }
func (s *seedStubStore) ResetStuckSummoning(_ context.Context) (int64, error) { return 0, nil }
func (s *seedStubStore) ShareAgent(_ context.Context, _ uuid.UUID, _, _, _ string) error { return nil }
func (s *seedStubStore) RevokeShare(_ context.Context, _ uuid.UUID, _ string) error { return nil }
func (s *seedStubStore) ListShares(_ context.Context, _ uuid.UUID) ([]store.AgentShareData, error) {
@@ -50,6 +50,9 @@ func (s *createCaptureStore) List(_ context.Context, _ string) ([]store.AgentDat
func (s *createCaptureStore) GetDefault(_ context.Context) (*store.AgentData, error) {
return nil, nil
}
func (s *createCaptureStore) ResetStuckSummoning(_ context.Context) (int64, error) {
return 0, nil
}
func (s *createCaptureStore) ShareAgent(_ context.Context, _ uuid.UUID, _, _, _ string) error {
return nil
}
@@ -66,6 +66,7 @@ func (s *stubAgentStore) GetByIDs(_ context.Context, _ []uuid.UUID) ([]store.Age
return nil, nil
}
func (s *stubAgentStore) GetDefault(_ context.Context) (*store.AgentData, error) { return nil, nil }
func (s *stubAgentStore) ResetStuckSummoning(_ context.Context) (int64, error) { return 0, nil }
func (s *stubAgentStore) Update(_ context.Context, _ uuid.UUID, _ map[string]any) error { return nil }
func (s *stubAgentStore) Delete(_ context.Context, _ uuid.UUID) error { return nil }
func (s *stubAgentStore) List(_ context.Context, _ string) ([]store.AgentData, error) {
@@ -84,6 +84,7 @@ func (n noopAgentCRUD) Update(_ context.Context, _ uuid.UUID, _ map[string]any)
func (n noopAgentCRUD) Delete(_ context.Context, _ uuid.UUID) error { return nil }
func (n noopAgentCRUD) List(_ context.Context, _ string) ([]store.AgentData, error) { return nil, nil }
func (n noopAgentCRUD) GetDefault(_ context.Context) (*store.AgentData, error) { return nil, nil }
func (n noopAgentCRUD) ResetStuckSummoning(_ context.Context) (int64, error) { return 0, nil }
// --- helpers ---