From 8290206ef849a3ccb8299e3b8017b803e92c7f2f Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Mon, 4 May 2015 15:17:20 -0700 Subject: [PATCH] consistent test style --- sa/storage-authority_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sa/storage-authority_test.go b/sa/storage-authority_test.go index 4150e59ac..93b9e3643 100644 --- a/sa/storage-authority_test.go +++ b/sa/storage-authority_test.go @@ -157,11 +157,9 @@ func TestAddCertificate(t *testing.T) { // TestGetCertificateByShortSerial tests some failure conditions for GetCertificate. // Success conditions are tested above in TestAddCertificate. func TestGetCertificateByShortSerial(t *testing.T) { - sa, err := NewSQLStorageAuthority("sqlite3", ":memory:") - test.AssertNotError(t, err, "Failed to create SA") - sa.InitTables() + sa := initSA(t) - _, err = sa.GetCertificateByShortSerial("") + _, err := sa.GetCertificateByShortSerial("") test.AssertError(t, err, "Should've failed on empty serial") _, err = sa.GetCertificateByShortSerial("01020304050607080102030405060708")