remove dontSetTimestamp
This commit is contained in:
parent
9eeb1c9fc2
commit
39f20bc6a2
@ -29,7 +29,6 @@ type percentilesContainerHandlerWrapper struct {
|
||||
prevStats *info.ContainerStats
|
||||
numStats uint64
|
||||
sampler sampling.Sampler
|
||||
dontSetTimestamp bool
|
||||
lock sync.Mutex
|
||||
}
|
||||
|
||||
|
@ -150,13 +150,6 @@ func TestSampleCpuUsage(t *testing.T) {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
// we want to set our own time.
|
||||
if w, ok := handler.(*percentilesContainerHandlerWrapper); ok {
|
||||
w.dontSetTimestamp = true
|
||||
} else {
|
||||
t.Fatal("handler is not an instance of statsSummaryContainerHandlerWrapper")
|
||||
}
|
||||
|
||||
// request stats/obervation N+1 times, so that there will be N samples
|
||||
for i := 0; i < N+1; i++ {
|
||||
_, err = handler.GetStats()
|
||||
|
Loading…
Reference in New Issue
Block a user