diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-12-02 17:05:45 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-12-02 17:05:45 +0100 |
commit | 3f1489f4f4532f93f766fc849a2e3e2b65667747 (patch) | |
tree | 30adb41b1bce816cbce7c23454c89ae22ae89521 /handler_test.go | |
parent | b540f681b4cdf740f9b8d1e584fd2b107fc1b090 (diff) |
added instance and log parameter tests
Diffstat (limited to 'handler_test.go')
-rw-r--r-- | handler_test.go | 6 |
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), }, |