diff --git a/go/buildcpu/buildcpu_test.go b/go/buildcpu/buildcpu_test.go index d1d0549..8c36ddb 100644 --- a/go/buildcpu/buildcpu_test.go +++ b/go/buildcpu/buildcpu_test.go @@ -78,7 +78,9 @@ func TestReadInForce(t *testing.T) { // A command with a space and a parenthesis in it, then nice 19 in field 19. _ = os.WriteFile(stat, []byte("42 (mesh (build) go) S 1 42 42 0 -1 4194560 1 0 0 0 0 0 0 0 39 19 8 0 1 2 3\n"), 0o644) cgroupRoot, procSelfCgroup, procSelfStat = cg, self, stat - t.Cleanup(func() { cgroupRoot, procSelfCgroup, procSelfStat = "/sys/fs/cgroup", "/proc/self/cgroup", "/proc/self/stat" }) + t.Cleanup(func() { + cgroupRoot, procSelfCgroup, procSelfStat = "/sys/fs/cgroup", "/proc/self/cgroup", "/proc/self/stat" + }) got := ReadInForce() want := InForce{Nice: 19, Cgroup: "/system.slice/mesh-build-go-runtime.service", CPUIdle: "1", CPUWeight: "0",