Commit 86a3f9242084da2a0d3b375c1c81c526870dd2e3

Authored by Andrew Kane
1 parent a52c9fd5

Restore parallel tests

Showing 3 changed files with 6 additions and 1 deletions   Show diff stats
@@ -14,3 +14,4 @@ gem "redis" @@ -14,3 +14,4 @@ gem "redis"
14 gem "connection_pool" 14 gem "connection_pool"
15 gem "kaminari" 15 gem "kaminari"
16 gem "elasticsearch-xpack", ">= 7.8.0" 16 gem "elasticsearch-xpack", ">= 7.8.0"
  17 +gem "parallel_tests"
@@ -7,3 +7,7 @@ Rake::TestTask.new do |t| @@ -7,3 +7,7 @@ Rake::TestTask.new do |t|
7 t.pattern = "test/**/*_test.rb" 7 t.pattern = "test/**/*_test.rb"
8 t.warning = false 8 t.warning = false
9 end 9 end
  10 +
  11 +# to test in parallel, uncomment and run:
  12 +# rake parallel:test
  13 +# require "parallel_tests/tasks"
test/inheritance_test.rb
@@ -13,7 +13,7 @@ class InheritanceTest < Minitest::Test @@ -13,7 +13,7 @@ class InheritanceTest < Minitest::Test
13 end 13 end
14 14
15 def test_child_index_name 15 def test_child_index_name
16 - assert_equal "animals-#{Date.today.year}", Dog.searchkick_index.name 16 + assert_equal "animals-#{Date.today.year}#{ENV["TEST_ENV_NUMBER"]}", Dog.searchkick_index.name
17 end 17 end
18 18
19 def test_child_search 19 def test_child_search