@@ -79,7 +79,7 @@ func TestStandardCapabilityCallsAreAsync(t *testing.T) {
7979 mockExecutionHelper .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
8080 return time .Now ()
8181 }).Maybe ()
82- mockExecutionHelper .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
82+ mockExecutionHelper .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
8383 return time .Now (), nil
8484 }).Maybe ()
8585 m := makeTestModule (t )
@@ -131,7 +131,7 @@ func TestStandardModeSwitch(t *testing.T) {
131131 })
132132
133133 // We want to make sure time.Now() is called at least twice in DON mode and once in node Mode
134- mockExecutionHelper .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
134+ mockExecutionHelper .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
135135 if nodeCall {
136136 donCall2 = true
137137 } else {
@@ -168,7 +168,7 @@ func TestStandardModeSwitch(t *testing.T) {
168168 mockExecutionHelper .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
169169 return time .Now ()
170170 }).Maybe ()
171- mockExecutionHelper .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
171+ mockExecutionHelper .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
172172 return time .Now (), nil
173173 }).Maybe ()
174174 mockExecutionHelper .EXPECT ().CallCapability (mock .Anything , mock .Anything ).RunAndReturn (func (_ context.Context , request * pb.CapabilityRequest ) (* pb.CapabilityResponse , error ) {
@@ -193,7 +193,7 @@ func TestStandardModeSwitch(t *testing.T) {
193193 mockExecutionHelper .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
194194 return time .Now ()
195195 }).Maybe ()
196- mockExecutionHelper .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
196+ mockExecutionHelper .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
197197 return time .Now (), nil
198198 }).Maybe ()
199199 mockExecutionHelper .EXPECT ().CallCapability (mock .Anything , mock .Anything ).RunAndReturn (func (_ context.Context , request * pb.CapabilityRequest ) (* pb.CapabilityResponse , error ) {
@@ -228,7 +228,7 @@ func TestStandardLogging(t *testing.T) {
228228 mockExecutionHelper .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
229229 return time .Now ()
230230 }).Maybe ()
231- mockExecutionHelper .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
231+ mockExecutionHelper .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
232232 return time .Now (), nil
233233 }).Maybe ()
234234 mockExecutionHelper .EXPECT ().EmitUserLog (mock .Anything ).RunAndReturn (func (s string ) error {
@@ -346,7 +346,7 @@ func TestStandardRandom(t *testing.T) {
346346 gte100Exec .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
347347 return time .Now ()
348348 }).Maybe ()
349- gte100Exec .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
349+ gte100Exec .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
350350 return time .Now (), nil
351351 }).Maybe ()
352352 // RunAndReturn
@@ -376,7 +376,7 @@ func TestStandardRandom(t *testing.T) {
376376 lt100Exec .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
377377 return time .Now ()
378378 }).Maybe ()
379- lt100Exec .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
379+ lt100Exec .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
380380 return time .Now (), nil
381381 }).Maybe ()
382382
@@ -400,7 +400,7 @@ func TestStandardRandom(t *testing.T) {
400400 gte100Exec2 .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
401401 return time .Now ()
402402 }).Maybe ()
403- gte100Exec2 .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
403+ gte100Exec2 .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
404404 return time .Now (), nil
405405 }).Maybe ()
406406
@@ -576,7 +576,7 @@ func runSecretTest(t *testing.T, m *module, secretResponse *pb.SecretResponse) *
576576 mockExecutionHelper .EXPECT ().GetNodeTime ().RunAndReturn (func () time.Time {
577577 return time .Now ()
578578 }).Maybe ()
579- mockExecutionHelper .EXPECT ().GetDONTime (mock . Anything ).RunAndReturn (func (ctx context. Context ) (time.Time , error ) {
579+ mockExecutionHelper .EXPECT ().GetDONTime ().RunAndReturn (func () (time.Time , error ) {
580580 return time .Now (), nil
581581 }).Maybe ()
582582
0 commit comments