Skip to content

Commit 3f58316

Browse files
committed
test_logdevice: Suppress warnings in a test
power_assert warns about "this Ruby version does not support pattern matching" for versions before 3.0. This avoids issues when running the tests on those versions.
1 parent 401f413 commit 3f58316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/logger/test_logdevice.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ class << Time
745745

746746
def test_shifting_weekly_dst_change
747747
Dir.mktmpdir do |tmpdir|
748-
assert_separately([{"TZ"=>"Europe/London"}, *%W"-I#{@top_dir} -rlogger -C#{tmpdir} -"], "#{<<-"begin;"}\n#{<<-'end;'}")
748+
assert_separately([{"TZ"=>"Europe/London"}, *%W"-I#{@top_dir} -W0 -rlogger -C#{tmpdir} -"], "#{<<-"begin;"}\n#{<<-'end;'}")
749749
begin;
750750
begin
751751
module FakeTime
@@ -776,7 +776,7 @@ class << Time
776776

777777
def test_shifting_monthly_dst_change
778778
Dir.mktmpdir do |tmpdir|
779-
assert_separately([{"TZ"=>"Europe/London"}, *%W"-I#{@top_dir} -rlogger -C#{tmpdir} -"], "#{<<-"begin;"}\n#{<<-'end;'}")
779+
assert_separately([{"TZ"=>"Europe/London"}, *%W"-I#{@top_dir} -W0 -rlogger -C#{tmpdir} -"], "#{<<-"begin;"}\n#{<<-'end;'}")
780780
begin;
781781
begin
782782
module FakeTime

0 commit comments

Comments
 (0)