@@ -24,7 +24,7 @@ func TestProcessingResultsServiceHandleOK(t *testing.T) {
24
24
retryCalculator := mocks .NewMockRetryCalculator (ctrl )
25
25
26
26
now := time .Date (2023 , 05 , 5 , 8 , 9 , 12 , 0 , time .UTC )
27
- timeSvc .EXPECT ().Now ().Return (now )
27
+ timeSvc .EXPECT ().Now ().AnyTimes (). Return (now )
28
28
29
29
flowID := "flow-1"
30
30
sinkID := "sink-1"
@@ -56,7 +56,7 @@ func TestProcessingResultsServiceHandleOK(t *testing.T) {
56
56
b , err := json .Marshal (& mUpdated )
57
57
assert .NoError (t , err )
58
58
59
- redisStore .EXPECT ().SetAndMove (ctx , messageKey , b , sourceQueueKey , destQueueKey , mID ).Return (nil )
59
+ redisStore .EXPECT ().SetLRemZAdd (ctx , messageKey , b , sourceQueueKey , destQueueKey , mID , float64 ( now . Unix ()) ).Return (nil )
60
60
61
61
s := NewProcessingResultsService (timeSvc , redisStore , retryCalculator )
62
62
err = s .HandleOK (ctx , m )
@@ -74,7 +74,7 @@ func TestProcessingResultsServiceHandleFailed_Dead(t *testing.T) {
74
74
retryCalculator := mocks .NewMockRetryCalculator (ctrl )
75
75
76
76
now := time .Date (2023 , 05 , 5 , 8 , 9 , 12 , 0 , time .UTC )
77
- timeSvc .EXPECT ().Now ().Return (now )
77
+ timeSvc .EXPECT ().Now ().AnyTimes (). Return (now )
78
78
79
79
flowID := "flow-1"
80
80
sinkID := "sink-1"
@@ -146,7 +146,7 @@ func TestProcessingResultsServiceHandleFailed_Scheduled(t *testing.T) {
146
146
retryCalculator := mocks .NewMockRetryCalculator (ctrl )
147
147
148
148
now := time .Date (2023 , 05 , 5 , 8 , 9 , 12 , 0 , time .UTC )
149
- timeSvc .EXPECT ().Now ().Return (now )
149
+ timeSvc .EXPECT ().Now ().AnyTimes (). Return (now )
150
150
151
151
flowID := "flow-1"
152
152
sinkID := "sink-1"
@@ -217,7 +217,7 @@ func TestProcessingResultsServiceHandleFailed_Ready(t *testing.T) {
217
217
retryCalculator := mocks .NewMockRetryCalculator (ctrl )
218
218
219
219
now := time .Date (2023 , 05 , 5 , 8 , 9 , 12 , 0 , time .UTC )
220
- timeSvc .EXPECT ().Now ().Return (now )
220
+ timeSvc .EXPECT ().Now ().AnyTimes (). Return (now )
221
221
222
222
flowID := "flow-1"
223
223
sinkID := "sink-1"
0 commit comments