We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6091146 commit 3e62b8bCopy full SHA for 3e62b8b
1 file changed
ipvs/ipvs_test.go
@@ -6,6 +6,7 @@ import (
6
"net"
7
"syscall"
8
"testing"
9
+ "time"
10
11
"github.com/docker/libnetwork/testutils"
12
"github.com/vishvananda/netlink"
@@ -342,3 +343,24 @@ func TestDestination(t *testing.T) {
342
343
}
344
345
346
+
347
+func TestTimeouts(t *testing.T) {
348
+ if testutils.RunningOnCircleCI() {
349
+ t.Skip("Skipping as not supported on CIRCLE CI kernel")
350
+ }
351
+ defer testutils.SetupTestOSContext(t)()
352
353
+ i, err := New("")
354
+ assert.NilError(t, err)
355
356
+ _, err = i.GetConfig()
357
358
359
+ cfg := Config{66 * time.Second, 66 * time.Second, 66 * time.Second}
360
+ err = i.SetConfig(&cfg)
361
362
363
+ c2, err := i.GetConfig()
364
365
+ assert.DeepEqual(t, cfg, *c2)
366
+}
0 commit comments