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

Running test failed #31

Closed
cizixs opened this issue Dec 20, 2016 · 3 comments
Closed

Running test failed #31

cizixs opened this issue Dec 20, 2016 · 3 comments

Comments

@cizixs
Copy link

cizixs commented Dec 20, 2016

When I try to run test, the following error occurred:

$ SUDO_PERMITTED=1 ./test
Building go-iptables...
Checking gofmt...
Running tests...
--- FAIL: TestChain (0.02s)
	iptables_test.go:107: testing iptables (hasWait=true, hasCheck=true)
	iptables_test.go:107: testing ip6tables (hasWait=true, hasCheck=true)
	iptables_test.go:107: testing iptables (hasWait=false, hasCheck=false)
	iptables_test.go:114: ListChains of Initial failed: exit status 4: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
--- FAIL: TestRules (0.02s)
	iptables_test.go:185: testing iptables (hasWait=true, hasCheck=true)
	iptables_test.go:185: testing ip6tables (hasWait=true, hasCheck=true)
	iptables_test.go:185: testing iptables (hasWait=false, hasCheck=false)
	iptables_test.go:205: ClearChain (of missing) failed: exit status 4: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
FAIL
coverage: 74.3% of statements
FAIL	github.com/coreos/go-iptables/iptables	0.050s

Running the failed command directly in terminal works well.

iptables version:

$ iptables --version
iptables v1.6.0
@gcmalloc
Copy link

linked to #24, which is a try to fix that.

@cizixs
Copy link
Author

cizixs commented Feb 7, 2017

@gcmalloc Thanks, I'll keep following the PR.

@squeed
Copy link
Collaborator

squeed commented May 30, 2017

Fixed in #38

@squeed squeed closed this as completed May 30, 2017
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

3 participants