We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e26be6a + 61eb998 commit ad266c2Copy full SHA for ad266c2
depot/metrics/reporter_test.go
@@ -2,6 +2,7 @@ package metrics_test
2
3
import (
4
"errors"
5
+ "os"
6
"time"
7
8
. "github.com/onsi/ginkgo"
@@ -61,6 +62,11 @@ var _ = Describe("Reporter", func() {
61
62
})
63
64
65
+ AfterEach(func() {
66
+ reporter.Signal(os.Interrupt)
67
+ Eventually(reporter.Wait()).Should(Receive())
68
+ })
69
+
70
It("reports the current capacity on the given interval", func() {
71
Eventually(func() fake.Metric {
72
return sender.GetValue("CapacityTotalMemory")
0 commit comments