mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Added additional time to wait for connection close from server
This commit is contained in:
@@ -44,8 +44,10 @@ func TestPingInterval(t *testing.T) {
|
||||
expect(errRe)
|
||||
|
||||
// Server should close the connection at this point..
|
||||
var err error
|
||||
time.Sleep(PING_INTERVAL)
|
||||
c.SetWriteDeadline(time.Now().Add(PING_INTERVAL))
|
||||
|
||||
var err error
|
||||
for {
|
||||
_, err = c.Write([]byte("PING\r\n"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user