(t *testing.T, scheduler *Scheduler)
| 671 | } |
| 672 | |
| 673 | func verifyNoPendingRequestsLeft(t *testing.T, scheduler *Scheduler) { |
| 674 | test.Poll(t, 1*time.Second, 0, func() any { |
| 675 | scheduler.pendingRequestsMu.Lock() |
| 676 | defer scheduler.pendingRequestsMu.Unlock() |
| 677 | return len(scheduler.pendingRequests) |
| 678 | }) |
| 679 | } |
| 680 | |
| 681 | type frontendMock struct { |
| 682 | mu sync.Mutex |
no test coverage detected