Commit 728129a
committed
test(wait): use RunAndReturn for dynamic mock in MultipleChecks test
Replace Return(func...) with RunAndReturn(func...) in
TestExecStrategyWaitUntilReady_MultipleChecks. With Return, the function
is returned as the value rather than being invoked on each call.
RunAndReturn ensures the mock executes the function dynamically,
which is the correct pattern for time-dependent behavior.
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>1 parent dcc5bea commit 728129a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments