Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apainintheneck committed Nov 18, 2023
1 parent 474aba8 commit df1234e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
bundler-cache: true

- name: Outdated readme check
run: bundle exec readme:outdated
run: bundle exec rake readme:outdated
2 changes: 1 addition & 1 deletion test/test_atlasq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def executable_path
# @param expected_stderr [String]
# @param expected_status [Integer]
def assert_command(args:, expected_stdout: "", expected_stderr: "", expected_status: 0)
stdout, stderr, status = Open3.capture3(executable_path, *args)
stdout, stderr, status = Open3.capture3({ "RUBYOPT" => "-W0" }, executable_path, *args)

assert_equal expected_stdout, stdout
assert_equal expected_stderr, stderr
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# Avoid accidental debug output causing test failures.
ENV.delete("ATLASQ_DEBUG")

$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
Expand Down

0 comments on commit df1234e

Please sign in to comment.