Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Nov 29, 2024
1 parent c3e8781 commit 22e02a6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func testCreateTransferInitiations(t *testing.T, store *storage.Storage) {
}
t1 = &models.TransferInitiation{
ID: t1ID,
Reference: "test1",
CreatedAt: t1T,
ScheduledAt: t1T,
Description: "test_description",
Expand All @@ -73,6 +74,7 @@ func testCreateTransferInitiations(t *testing.T, store *storage.Storage) {
}
t2 = &models.TransferInitiation{
ID: t2ID,
Reference: "test2",
CreatedAt: t2T,
ScheduledAt: t2T,
Description: "test_description2",
Expand Down Expand Up @@ -136,6 +138,7 @@ func testGetTransferInitiation(

func checkTransferInitiationsEqual(t *testing.T, t1, t2 *models.TransferInitiation, checkRelatedAdjusment bool) {
require.Equal(t, t1.ID, t2.ID)
require.Equal(t, t1.Reference, t2.Reference)
require.Equal(t, t1.CreatedAt.UTC(), t2.CreatedAt.UTC())
require.Equal(t, t1.ScheduledAt.UTC(), t2.ScheduledAt.UTC())
require.Equal(t, t1.Description, t2.Description)
Expand Down

0 comments on commit 22e02a6

Please sign in to comment.