diff --git a/server_test.go b/server_test.go index 3f2db34..cebc3d6 100644 --- a/server_test.go +++ b/server_test.go @@ -162,8 +162,12 @@ func testShutdownDeadlock(t *testing.T, uuid int) { for !opened && attempt < 10 { transport = thrift.NewTSocketFromAddrTimeout(addr, timeout, timeout) err = transport.Open() - opened = err == nil attempt++ + if err != nil { + time.Sleep(1 * time.Second) + } else { + opened = true + } } require.NoError(t, err) client := osquery.NewExtensionManagerClientFactory(transport,