From 78cbc1a091098b83d233299ab1a84975d02f2f56 Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Mon, 8 Jun 2015 11:06:16 -0700 Subject: [PATCH] Decrease block time so connection doesn't time out --- va/validation-authority_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/va/validation-authority_test.go b/va/validation-authority_test.go index e2113a7f9..2820944a0 100644 --- a/va/validation-authority_test.go +++ b/va/validation-authority_test.go @@ -67,7 +67,7 @@ func simpleSrv(t *testing.T, token string, stopChan, waitChan chan bool) { fmt.Fprintf(w, "wrongtoken") } else if strings.HasSuffix(r.URL.Path, "wait") { t.Logf("SIMPLESRV: Got a wait req\n") - time.Sleep(time.Second * 5) + time.Sleep(time.Second * 3) fmt.Fprintf(w, "%s", token) } else if strings.HasSuffix(r.URL.Path, "wait-long") { t.Logf("SIMPLESRV: Got a wait-long req\n") @@ -375,8 +375,8 @@ func TestUpdateValidations(t *testing.T) { va.UpdateValidations(authz, 0) took := time.Since(started) - // Check that the call to va.UpdateValidations didn't block for 5 seconds - test.Assert(t, (took < (time.Second * 5)), "UpdateValidations blocked") + // Check that the call to va.UpdateValidations didn't block for 3 seconds + test.Assert(t, (took < (time.Second * 3)), "UpdateValidations blocked") } type MockRegistrationAuthority struct {