From c1e80b5a25c3011adb465bb7471c47627cbe4dec Mon Sep 17 00:00:00 2001 From: im-adithya Date: Wed, 13 Dec 2023 19:00:03 +0530 Subject: [PATCH] fix: timestamp in test --- service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_test.go b/service_test.go index 79550976..643d6232 100644 --- a/service_test.go +++ b/service_test.go @@ -493,7 +493,7 @@ func TestHandleEvent(t *testing.T) { assert.Equal(t, mockInvoices[0].PaymentHash, transaction.PaymentHash) assert.Equal(t, mockInvoices[0].Amount, transaction.Amount) assert.Equal(t, mockInvoices[0].FeesPaid, transaction.FeesPaid) - assert.Equal(t, mockInvoices[0].SettledAt, transaction.SettledAt) + assert.Equal(t, mockInvoices[0].SettledAt.Unix(), transaction.SettledAt.Unix()) // get info: without permission newPayload, err = nip04.Encrypt(nip47GetInfoJson, ss) assert.NoError(t, err)