Skip to content

Commit 3a88a02

Browse files
committed
Remove extra code in RunConcurrencyTest
Signed-off-by: Chee Hau Lim <[email protected]>
1 parent eddedb8 commit 3a88a02

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

libnetwork/iptables/iptables_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,7 @@ func TestConcurrencyNoWait(t *testing.T) {
210210
// Note that if iptables does not support the xtable lock on this
211211
// system, then allowXlock has no effect -- it will always be off.
212212
func RunConcurrencyTest(t *testing.T, allowXlock bool) {
213-
iptable, natChain, filterChain, err := createNewChain()
214-
if err != nil {
215-
t.Fatal(err)
216-
}
217-
218-
err = iptable.ProgramChain(natChain, bridgeName, false, true)
219-
if err != nil {
220-
t.Fatal(err)
221-
}
222-
223-
err = iptable.ProgramChain(filterChain, bridgeName, false, true)
213+
_, natChain, _, err := createNewChain()
224214
if err != nil {
225215
t.Fatal(err)
226216
}

0 commit comments

Comments
 (0)