mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 11:09:22 +08:00
fix: https://github.com/komari-monitor/komari/issues/226 win10 win11识别似乎有点问题
This commit is contained in:
11
monitoring/unit/os_test.go
Normal file
11
monitoring/unit/os_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package monitoring
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestOsName(t *testing.T) {
|
||||
if got := OSName(); got == "" {
|
||||
t.Errorf("OSName() = %v, want non-empty string", got)
|
||||
} else {
|
||||
t.Logf("OSName() = %v", got)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user