Skip to content

Commit

Permalink
trillian/ctfe: reduce test dependencies (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Jan 22, 2018
1 parent 57da235 commit 52c0590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trillian/ctfe/serialize_test.go
Expand Up @@ -152,7 +152,7 @@ func TestSignV1TreeHead(t *testing.T) {
t.Fatalf("could not create signer: %v", err)
}
signer := crypto.NewSHA256Signer(privKey)
c := NewLogContext(6962, "test-log", CertValidationOpts{}, nil, signer, InstanceOptions{}, fakeTimeSource)
c := &LogContext{logID: 6962, signer: signer}

sth := ct.SignedTreeHead{
Version: ct.V1,
Expand Down Expand Up @@ -211,13 +211,13 @@ func TestSignV1TreeHeadDifferentSigners(t *testing.T) {
t.Fatalf("could not create signer1: %v", err)
}
signer1 := crypto.NewSHA256Signer(privKey)
c1 := NewLogContext(6962, "test-log", CertValidationOpts{}, nil, signer1, InstanceOptions{}, fakeTimeSource)
c1 := &LogContext{logID: 6962, signer: signer1}

signer2, err := setupSigner(fakeSignature)
if err != nil {
t.Fatalf("could not create signer2: %v", err)
}
c2 := NewLogContext(6962, "test-log", CertValidationOpts{}, nil, signer2, InstanceOptions{}, fakeTimeSource)
c2 := &LogContext{logID: 6963, signer: signer2}

sth := ct.SignedTreeHead{
Version: ct.V1,
Expand Down

0 comments on commit 52c0590

Please sign in to comment.