From 3f1489f4f4532f93f766fc849a2e3e2b65667747 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Wed, 2 Dec 2020 17:05:45 +0100 Subject: added instance and log parameter tests --- handler_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'handler_test.go') 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), }, -- cgit v1.2.3