From 9e6c301a830ef2675a2b2dab08002723b1315af4 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 30 Nov 2020 17:26:08 +0100 Subject: migrated over to x509util/testdata --- instance_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'instance_test.go') 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, -- cgit v1.2.3