Skip to content

Commit

Permalink
Amélioration de la stabilité d'un test
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed Dec 19, 2024
1 parent f9f563d commit b90c3e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ defmodule Transport.Test.Transport.Jobs.ImportGBFSFeedContactEmailJobTest do

assert :ok == perform_job(ImportGBFSFeedContactEmailJob, %{})

assert [first_contact, new_contact] = DB.Contact |> DB.Repo.all() |> Enum.sort_by(& &1.inserted_at)
assert [first_contact, new_contact] = DB.Contact |> DB.Repo.all() |> Enum.sort_by(& &1.id)

assert %DB.Contact{id: ^existing_gbfs_contact_id, email: ^gbfs_2_email} = first_contact
assert "Example" == Transport.GBFSMetadata.operator(gbfs_1.url)
Expand Down

0 comments on commit b90c3e4

Please sign in to comment.