From fcad6f91a3f292b6b76be10f03baf05ee5245d3d Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Wed, 26 May 2021 06:47:52 -0700 Subject: Use the stack clock everywhere Updates #5939. Updates #6012. RELNOTES: n/a PiperOrigin-RevId: 375931554 --- pkg/tcpip/stack/nud_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkg/tcpip/stack/nud_test.go') diff --git a/pkg/tcpip/stack/nud_test.go b/pkg/tcpip/stack/nud_test.go index bfce2fe16..1aeb2f8a5 100644 --- a/pkg/tcpip/stack/nud_test.go +++ b/pkg/tcpip/stack/nud_test.go @@ -711,7 +711,8 @@ func TestNUDStateReachableTime(t *testing.T) { rng := fakeRand{ num: defaultFakeRandomNum, } - s := stack.NewNUDState(c, rand.New(&rng)) + var clock faketime.NullClock + s := stack.NewNUDState(c, &clock, rand.New(&rng)) if got, want := s.ReachableTime(), test.want; got != want { t.Errorf("got ReachableTime = %q, want = %q", got, want) } @@ -783,7 +784,8 @@ func TestNUDStateRecomputeReachableTime(t *testing.T) { rng := fakeRand{ num: defaultFakeRandomNum, } - s := stack.NewNUDState(c, rand.New(&rng)) + var clock faketime.NullClock + s := stack.NewNUDState(c, &clock, rand.New(&rng)) old := s.ReachableTime() if got, want := s.ReachableTime(), old; got != want { -- cgit v1.2.3