From 3a5c4516f92769f29658a8573e44714bd73c7177 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 2 Jun 2014 11:54:23 -0700 Subject: [PATCH] Update cpu stat test for no error Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- libcontainer/cgroups/fs/cpu_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcontainer/cgroups/fs/cpu_test.go b/libcontainer/cgroups/fs/cpu_test.go index ad06740..c5bfc50 100644 --- a/libcontainer/cgroups/fs/cpu_test.go +++ b/libcontainer/cgroups/fs/cpu_test.go @@ -43,8 +43,8 @@ func TestNoCpuStatFile(t *testing.T) { cpu := &cpuGroup{} err := cpu.GetStats(helper.CgroupData, &actualStats) - if err == nil { - t.Fatal("Expected to fail, but did not.") + if err != nil { + t.Fatal("Expected not to fail, but did") } }