Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
caike committed Sep 4, 2024
1 parent b0893ce commit 7cd140c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/tx_submission_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule Xogmios.TxSubmissionTest do
use ExUnit.Case

@ws_url TestServer.get_url()
@eras ["allegra", "alonzo", "babbage", "conway", "mary", "shelley"]

setup_all do
{:ok, _server} = TestServer.start(handler: TxSubmission.TestHandler)
Expand Down Expand Up @@ -46,7 +47,7 @@ defmodule Xogmios.TxSubmissionTest do
eras = Map.keys(data)

for era <- eras do
assert era in ["allegra", "alonzo", "babbage", "conway", "mary", "shelley"]
assert era in @eras
assert data[era] =~ "invalid or incomplete value of"
end

Expand All @@ -69,7 +70,7 @@ defmodule Xogmios.TxSubmissionTest do
eras = Map.keys(data)

for era <- eras do
assert era in ["allegra", "alonzo", "babbage", "conway", "mary", "shelley"]
assert era in @eras
assert data[era] =~ "invalid or incomplete value of"
end

Expand Down

0 comments on commit 7cd140c

Please sign in to comment.