mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-02 15:45:09 +00:00
Unify queue constructors, deprecate current constructors
Kubernetes-commit: fea83b78243c77e81b91f3f0a812979809aeacaf
This commit is contained in:
committed by
Kubernetes Publisher
parent
9668243c04
commit
66fa9d308f
@@ -171,7 +171,12 @@ func TestMetrics(t *testing.T) {
|
||||
mp := testMetricsProvider{}
|
||||
t0 := time.Unix(0, 0)
|
||||
c := testingclock.NewFakeClock(t0)
|
||||
q := newNamedQueueWithCustomClock(c, "test", time.Millisecond, WithMetricsProvider(&mp))
|
||||
config := QueueConfig{
|
||||
Name: "test",
|
||||
Clock: c,
|
||||
MetricsProvider: &mp,
|
||||
}
|
||||
q := newQueueWithConfig(config, time.Millisecond)
|
||||
defer q.ShutDown()
|
||||
for !c.HasWaiters() {
|
||||
// Wait for the go routine to call NewTicker()
|
||||
|
Reference in New Issue
Block a user