Files
LocalAI/pkg/xsysinfo/intel_gputop_internal_test.go
leilei3167 9cbfa88a5c fix(xsysinfo): avoid startup hang on intel_gpu_top (#12206)
Use -n 1 for a single JSON sample instead of -s 1, which sets a 1 ms
refresh period and runs until interrupted on current intel_gpu_top.

Fixes #12205

Signed-off-by: leilei3167 <imleilei123@gmail.com>
2026-09-23 12:18:57 +02:00

13 lines
287 B
Go

package xsysinfo
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("intelGPUTopArgs", func() {
It("requests one JSON sample instead of an infinite 1ms refresh loop", func() {
Expect(intelGPUTopArgs()).To(Equal([]string{"-J", "-n", "1"}))
})
})