@@ -47,6 +47,7 @@ import (
4747 "go.temporal.io/server/common/metrics"
4848 "go.temporal.io/server/common/namespace"
4949 "go.temporal.io/server/common/persistence/visibility/manager"
50+ "go.temporal.io/server/common/persistence/visibility/store/standard/cassandra"
5051 "go.temporal.io/server/common/primitives"
5152 "go.temporal.io/server/common/searchattribute"
5253 "go.temporal.io/server/service/history/shard"
@@ -122,6 +123,7 @@ func (s *deleteManagerWorkflowSuite) TestDeleteDeletedWorkflowExecution() {
122123 RunId : tests .RunID ,
123124 }
124125
126+ s .mockVisibilityManager .EXPECT ().HasStoreName (cassandra .CassandraPersistenceName ).Return (true )
125127 mockWeCtx := workflow .NewMockContext (s .controller )
126128 mockMutableState := workflow .NewMockMutableState (s .controller )
127129 mockMutableState .EXPECT ().GetCurrentBranchToken ().Return ([]byte {22 , 8 , 78 }, nil )
@@ -167,6 +169,7 @@ func (s *deleteManagerWorkflowSuite) TestDeleteDeletedWorkflowExecution_Error()
167169 RunId : tests .RunID ,
168170 }
169171
172+ s .mockVisibilityManager .EXPECT ().HasStoreName (cassandra .CassandraPersistenceName ).Return (true )
170173 mockWeCtx := workflow .NewMockContext (s .controller )
171174 mockMutableState := workflow .NewMockMutableState (s .controller )
172175 mockMutableState .EXPECT ().GetCurrentBranchToken ().Return ([]byte {22 , 8 , 78 }, nil )
@@ -212,6 +215,7 @@ func (s *deleteManagerWorkflowSuite) TestDeleteWorkflowExecution_OpenWorkflow()
212215 }
213216 now := time .Now ()
214217
218+ s .mockVisibilityManager .EXPECT ().HasStoreName (cassandra .CassandraPersistenceName ).Return (true )
215219 mockWeCtx := workflow .NewMockContext (s .controller )
216220 mockMutableState := workflow .NewMockMutableState (s .controller )
217221 closeExecutionVisibilityTaskID := int64 (39 )
@@ -257,6 +261,7 @@ func (s *deleteManagerWorkflowSuite) TestDeleteWorkflowExecutionRetention_Archiv
257261 RunId : tests .RunID ,
258262 }
259263
264+ s .mockVisibilityManager .EXPECT ().HasStoreName (cassandra .CassandraPersistenceName ).Return (true )
260265 mockWeCtx := workflow .NewMockContext (s .controller )
261266 mockMutableState := workflow .NewMockMutableState (s .controller )
262267
@@ -332,6 +337,7 @@ func (s *deleteManagerWorkflowSuite) TestDeleteWorkflowExecutionRetention_Archiv
332337 RunId : tests .RunID ,
333338 }
334339
340+ s .mockVisibilityManager .EXPECT ().HasStoreName (cassandra .CassandraPersistenceName ).Return (true )
335341 mockWeCtx := workflow .NewMockContext (s .controller )
336342 mockMutableState := workflow .NewMockMutableState (s .controller )
337343 branchToken := []byte {22 , 8 , 78 }
0 commit comments