File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2172,6 +2172,14 @@ var _ = framework.SIGDescribe("node")(framework.WithLabel("DRA"), func() {
21722172 emptySlice := gomega .HaveField ("Spec.Devices" , gomega .BeEmpty ())
21732173 gomega .Eventually (ctx , listSlices ).WithTimeout (2 * time .Minute ).Should (gomega .HaveField ("Items" , gomega .HaveExactElements (emptySlice )))
21742174 expectStats = resourceslice.Stats {NumCreates : int64 (numSlices ) + 1 , NumDeletes : int64 (numSlices )}
2175+
2176+ // There is a window of time where the ResourceSlice exists and is
2177+ // returned in a list but before that ResourceSlice is accounted for
2178+ // in the controller's stats, consisting mostly of network latency
2179+ // between this test process and the API server. Wait for the stats
2180+ // to converge before asserting there are no further changes.
2181+ gomega .Eventually (ctx , controller .GetStats ).WithTimeout (30 * time .Second ).Should (gomega .Equal (expectStats ))
2182+
21752183 gomega .Consistently (ctx , controller .GetStats ).WithTimeout (2 * mutationCacheTTL ).Should (gomega .Equal (expectStats ))
21762184 })
21772185 })
You can’t perform that action at this time.
0 commit comments