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

unit test failed #1036

Open
wangling94 opened this issue Dec 4, 2024 · 0 comments
Open

unit test failed #1036

wangling94 opened this issue Dec 4, 2024 · 0 comments

Comments

@wangling94
Copy link

i push a pr with check failed, i tried to run go test with master branch , still failed.

CGO_ENABLED=0 go test -run TestRuleListFiltered
--- FAIL: TestRuleListFiltered (0.13s)
--- FAIL: TestRuleListFiltered/IPv4 (0.06s)
--- FAIL: TestRuleListFiltered/IPv4/returns_all_rules (0.00s)
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_one_rule_filtered_by_Src (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_one_rule_filtered_by_Dst (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_two_rules_filtered_by_Dst (0.00s)
rule_test.go:592: Expected len: 2, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_one_rule_filtered_by_Src_when_two_rules_exist (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_one_rule_filtered_by_Priority(0)_and_Table (0.06s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_one_rule_filtered_by_Priority_preceding_main-table_rule (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_rules_with_specific_priority (0.00s)
rule_test.go:592: Expected len: 4, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_rules_filtered_by_Table (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_rules_filtered_by_Mask (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv4/returns_rules_filtered_by_Mark (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
rule_test.go:378: protocol not available
--- FAIL: TestRuleListFiltered/IPv4/returns_rules_filtered_by_fwmark_0 (0.00s)
testing.go:1490: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
--- FAIL: TestRuleListFiltered/IPv6 (0.06s)
--- FAIL: TestRuleListFiltered/IPv6/returns_all_rules (0.00s)
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_one_rule_filtered_by_Src (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_one_rule_filtered_by_Dst (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_two_rules_filtered_by_Dst (0.00s)
rule_test.go:592: Expected len: 2, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_one_rule_filtered_by_Src_when_two_rules_exist (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_one_rule_filtered_by_Priority(0)_and_Table (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_one_rule_filtered_by_Priority_preceding_main-table_rule (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_rules_with_specific_priority (0.06s)
rule_test.go:592: Expected len: 4, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_rules_filtered_by_Table (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_rules_filtered_by_Mask (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
--- FAIL: TestRuleListFiltered/IPv6/returns_rules_filtered_by_Mark (0.00s)
rule_test.go:592: Expected len: 1, got: 0
rule_test.go:602: Error expectation not met, want true, got false
rule_test.go:378: protocol not available
--- FAIL: TestRuleListFiltered/IPv6/returns_rules_filtered_by_fwmark_0 (0.00s)
testing.go:1490: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
FAIL
exit status 1
FAIL github.com/vishvananda/netlink 0.176s

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