Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Mar 9, 2024
1 parent de94da6 commit 5560e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
max_runs = if System.get_env("CI"), do: 100_000, else: 1_000
max_runs = if System.get_env("CI"), do: 10_000, else: 100
Application.put_env(:stream_data, :max_runs, max_runs)

tzdb = TimeZoneInfo.TimeZoneDatabase
Expand Down
4 changes: 2 additions & 2 deletions test/tox/datetime_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ defmodule Tox.DateTimeTest do
time_zones = ["Pacific/Enderbury", "Pacific/Kiritimati", "Pacific/Kanton"]

if datetime.time_zone in time_zones and
datetime.year == 1994 and
datetime.month == 12 do
datetime.month == 12 and
datetime.year in [1994, 11994] do
assert result.day == calendar.days_in_month(result.year, result.month) - 1
else
assert result.day == calendar.days_in_month(result.year, result.month)
Expand Down

0 comments on commit 5560e2d

Please sign in to comment.