mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
chore: add more tests (#3259)
This commit is contained in:
12
core/stat/internal/cgroup_linux_test.go
Normal file
12
core/stat/internal/cgroup_linux_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestRunningInUserNS(t *testing.T) {
|
||||
// should be false in docker
|
||||
assert.False(t, runningInUserNS())
|
||||
}
|
||||
Reference in New Issue
Block a user