mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user