From 365548a29f23f15632305d65070236cfd270589c Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 9 Oct 2023 12:53:12 -0400 Subject: fix small bug --- pkg/ipstack/ipstack_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/ipstack/ipstack_test.go') diff --git a/pkg/ipstack/ipstack_test.go b/pkg/ipstack/ipstack_test.go index 97c4947..ddb5453 100644 --- a/pkg/ipstack/ipstack_test.go +++ b/pkg/ipstack/ipstack_test.go @@ -75,17 +75,22 @@ func TestInterfaceUpThenDownTwice(t *testing.T) { time.Sleep(5 * time.Millisecond) // allow time to print + fmt.Println("putting interface down") InterfaceDown(iface) if iface.State == true { t.Error("iface state should be false") } + time.Sleep(3 * time.Millisecond) + fmt.Println("putting interface back up") + InterfaceUp(iface) if iface.State == false { t.Error("iface state should be true") } time.Sleep(3 * time.Millisecond) // allow time to print + fmt.Println("putting interface down") InterfaceDown(iface) if iface.State == true { t.Error("iface state should be false") -- cgit v1.2.3-70-g09d2