From fc837761cccb9621a617000dcaa199143b607c0e Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 6 Jun 2024 12:24:59 +0100 Subject: [PATCH] Use formatted date instead of integer in test queries --- renewal/service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renewal/service_test.go b/renewal/service_test.go index 90ef22e..ca6c927 100644 --- a/renewal/service_test.go +++ b/renewal/service_test.go @@ -165,7 +165,7 @@ func TestPebbleRenewal(t *testing.T) { _, err := db2.Exec("DELETE FROM certificate_domains") assert.NoError(t, err) - _, err = db2.Exec(`INSERT INTO certificates (owner, dns, auto_renew, active, renewing, renew_failed, not_after, updated_at) VALUES (1, 1, 1, 1, 0, 0, 0, 0)`) + _, err = db2.Exec(`INSERT INTO certificates (owner, dns, auto_renew, active, renewing, renew_failed, not_after, updated_at) VALUES (1, 1, 1, 1, 0, 0, "2000-01-01 00:00:00+00:00", "2000-01-01 00:00:00+00:00")`) assert.NoError(t, err) for _, j := range i.domains { _, err = db2.Exec(`INSERT INTO certificate_domains (cert_id, domain) VALUES (1, ?)`, j)