While locally tested, this test wasn't being run with the original enhancement.

* Include the test for windows
* Call ProcUsage (versus procUsage), as test was moved.
This commit is contained in:
Colin Sullivan
2016-05-02 15:25:07 -06:00
parent cd07cc377c
commit 79b4e6be10

View File

@@ -1,5 +1,5 @@
// Copyright 2016 Apcera Inc. All rights reserved.
// +build win
// +build windows
package pse
@@ -93,13 +93,13 @@ func TestPSEmulationWin(t *testing.T) {
}
tRss = int64(fval)
if err = procUsage(&pcpu, &rss, &vss); err != nil {
if err = ProcUsage(&pcpu, &rss, &vss); err != nil {
t.Fatal("Error: %v", err)
}
checkValues(t, pcpu, tPcpu, rss, tRss)
// Again to test image name caching
if err = procUsage(&pcpu, &rss, &vss); err != nil {
if err = ProcUsage(&pcpu, &rss, &vss); err != nil {
t.Fatal("Error: %v", err)
}
checkValues(t, pcpu, tPcpu, rss, tRss)