diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-30 17:26:08 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-30 17:26:08 +0100 |
commit | 9e6c301a830ef2675a2b2dab08002723b1315af4 (patch) | |
tree | 1a3193f49f9af2c9ad68b5acf5d09e4185d62045 /instance_test.go | |
parent | c70ff166952b3d7c325a6db8d42751e82f86ae31 (diff) |
migrated over to x509util/testdata
Diffstat (limited to 'instance_test.go')
-rw-r--r-- | instance_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/instance_test.go b/instance_test.go index f4a8fea..582b232 100644 --- a/instance_test.go +++ b/instance_test.go @@ -6,8 +6,8 @@ import ( "crypto" "crypto/x509" - "github.com/system-transparency/stfe/testdata" "github.com/system-transparency/stfe/x509util" + "github.com/system-transparency/stfe/x509util/testdata" ) var ( @@ -21,13 +21,10 @@ var ( ) func makeTestLogParameters(t *testing.T, signer crypto.Signer) *LogParameters { - anchorList, err := x509util.NewCertificateList(testdata.PemAnchors) + anchorList, err := x509util.NewCertificateList(testdata.TrustAnchors) if err != nil { t.Fatalf("must decode trust anchors: %v", err) } - if got, want := len(anchorList), testdata.NumPemAnchors; got != want { - t.Fatalf("must have %d trust anchor(s), got %d", want, got) - } return &LogParameters{ LogId: testLogId, TreeId: testTreeId, |