From fc66b8b5cc2bfd627cf8e51963dd59c08bc70d44 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Sun, 18 Aug 2019 13:58:50 -0500 Subject: [PATCH] xmpp: increase timeout on tests This is still flakey in the VM, but I don't want to remove the timeout entirely in case it blocks. If it hasn't finished in 10 seconds, even on a slow VM, something else is going horribly wrong anyways so call it good enough. --- send_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send_test.go b/send_test.go index 09bcbb3..7b8a379 100644 --- a/send_test.go +++ b/send_test.go @@ -114,7 +114,7 @@ func TestSendIQ(t *testing.T) { } }() - ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(time.Second)) + ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(10*time.Second)) defer cancel() resp, err := s.SendIQElement(ctx, tc.payload, tc.iq) -- 2.34.2