Revert container_stats_test.go change which caused Windows CRI integration test failure
PR #7892 which supposed to fix issue on Linux introduced random failure on Windows, this commit is to revert that change for Windows platform Signed-off-by: Tony Fang <nenghui.fang@gmail.com>
This commit is contained in:
parent
5e7baa2eb3
commit
82d6c2f931
@ -103,9 +103,15 @@ func TestContainerConsumedStats(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
if goruntime.GOOS == "windows" {
|
||||||
|
if s.GetMemory().GetWorkingSetBytes().GetValue() > 0 {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if s.GetWritableLayer().GetTimestamp() > 0 {
|
if s.GetWritableLayer().GetTimestamp() > 0 {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
}, time.Second, 30*time.Second))
|
}, time.Second, 30*time.Second))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user