Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is stat's test err being asserted here? #4200

Open
DevineLiu opened this issue Jun 20, 2024 · 0 comments
Open

Why is stat's test err being asserted here? #4200

DevineLiu opened this issue Jun 20, 2024 · 0 comments

Comments

@DevineLiu
Copy link

DevineLiu commented Jun 20, 2024

https://github.com/zeromicro/go-zero/blame/f1ed7bd75de44ba1491a2627c36c86e649ae277e/core/stat/internal/cgroup_linux_test.go#L35

I am testing on macOS and testing in Docker.
Assert does not throw an error, make the test fails.

Environment information:

# mount | grep cgroup
cgroup on /sys/fs/cgroup type cgroup2 (ro,nosuid,nodev,noexec,relatime,nsdelegate)
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

@kevwan Why is err being asserted here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant