zhuqi-lucas commented on code in PR #890:
URL: https://github.com/apache/yunikorn-k8shim/pull/890#discussion_r1717824747


##########
pkg/cache/context_test.go:
##########
@@ -2433,3 +2433,111 @@ func assertListerPods(pods []*v1.Pod, count int) bool {
        }
        return count == counted
 }
+
+type MockRetryStrategy struct {
+       totalSleep time.Duration
+}
+
+func (m *MockRetryStrategy) Sleep(duration time.Duration) {
+       m.totalSleep += duration
+}

Review Comment:
   I added this to expose to testing code to mock the sleep time interval, we 
don't have a the context mock class.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to