aboutsummaryrefslogtreecommitdiff
path: root/handler_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'handler_test.go')
-rw-r--r--handler_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/handler_test.go b/handler_test.go
index 3bcc702..40fd562 100644
--- a/handler_test.go
+++ b/handler_test.go
@@ -23,6 +23,10 @@ import (
"github.com/system-transparency/stfe/x509util/testdata"
)
+var (
+ testDeadline = time.Second * 10
+)
+
type testHandler struct {
mockCtrl *gomock.Controller
client *mockclient.MockTrillianLogClient
@@ -36,7 +40,7 @@ func newTestHandler(t *testing.T, signer crypto.Signer) *testHandler {
mockCtrl: ctrl,
client: client,
instance: &Instance{
- Deadline: time.Second * 10,
+ Deadline: testDeadline,
Client: client,
LogParameters: makeTestLogParameters(t, signer),
},