Skip to content

Commit

Permalink
Fix deprecation warning running parallel tests (#698)
Browse files Browse the repository at this point in the history
* Fix deprecation warning running parallel tests

Spotted in the CI logs:

`DEPRECATED: use MT_CPU instead of N for parallel test runs`

* Bump minitest version in gemspec
  • Loading branch information
DazWorrall committed Feb 19, 2020
1 parent def739d commit e4e6e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bundle exec rake unit_test
print_header "Run Non-Parallel Integration Tests"
bundle exec rake serial_integration_test

print_header "Run Parallel Integration Tests (N=$PARALLELISM)"
PARALLELIZE_ME=1 N=$PARALLELISM bundle exec rake integration_test
print_header "Run Parallel Integration Tests (MT_CPU=$PARALLELISM)"
PARALLELIZE_ME=1 MT_CPU=$PARALLELISM bundle exec rake integration_test

test $err -eq 0
2 changes: 1 addition & 1 deletion krane.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency("yard")

# Test framework
spec.add_development_dependency("minitest", "~> 5.0")
spec.add_development_dependency("minitest", "~> 5.12")
spec.add_development_dependency("minitest-stub-const", "~> 0.6")
spec.add_development_dependency("minitest-reporters")
spec.add_development_dependency("mocha", "~> 1.5")
Expand Down

0 comments on commit e4e6e34

Please sign in to comment.