use 'nf_conntrack' instead of 'nf_conntrack_ipv4' for linux kernel >= 4.19

This commit is contained in:
Weibin Lin
2018-11-02 17:19:32 +08:00
parent 774b18491f
commit 4b90559369
4 changed files with 57 additions and 31 deletions

View File

@@ -97,8 +97,8 @@ func TestRequiredIPVSKernelModulesAvailableCheck(t *testing.T) {
for i, tc := range cases {
fcmd := fakeexec.FakeCmd{
CombinedOutputScript: []fakeexec.FakeCombinedOutputAction{
func() ([]byte, error) { return []byte(cases[i].loadedKernel), nil },
func() ([]byte, error) { return []byte(cases[i].kernelVersion), nil },
func() ([]byte, error) { return []byte(cases[i].loadedKernel), nil },
func() ([]byte, error) { return []byte(cases[i].builtinKernel), nil },
},
}