Skip to content

Commit c2364da

Browse files
committed
[XPACK] Updates assert_nil to remove deprecation warning
1 parent 52ad019 commit c2364da

15 files changed

+16
-16
lines changed

elasticsearch-xpack/test/unit/graph/explore_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GraphExploreTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal 'my_index/_graph/explore', url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/index_lifecycle_management/retry_policy_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackIndexLifecycleManagementRetryTest < Minitest::Test
2929
assert_equal 'POST', method
3030
assert_equal 'foo/_ilm/retry', url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/flush_job_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlFlushJobTest < Minitest::Test
2929
assert_equal 'POST', method
3030
assert_equal "_ml/anomaly_detectors/foo/_flush", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/get_buckets_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlGetBucketsTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal "_ml/anomaly_detectors/foo/results/buckets", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/get_categories_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlGetCategoriesTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal "_ml/anomaly_detectors/foo/results/categories", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/get_influencers_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlGetInfluencersTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal "_ml/anomaly_detectors/foo/results/influencers", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/get_model_snapshots_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlGetModelSnapshotsTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal "_ml/anomaly_detectors/foo/model_snapshots/bar", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/get_overall_buckets_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlGetOverallBucketsTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal '_ml/anomaly_detectors/foo/results/overall_buckets', url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/get_records_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlGetRecordsTest < Minitest::Test
2929
assert_equal 'GET', method
3030
assert_equal "_ml/anomaly_detectors/foo/results/records", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

elasticsearch-xpack/test/unit/machine_learning/revert_model_snapshot_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class XPackMlRevertModelSnapshotTest < Minitest::Test
2929
assert_equal 'POST', method
3030
assert_equal "_ml/anomaly_detectors/foo/model_snapshots/bar/_revert", url
3131
assert_equal Hash.new, params
32-
assert_equal nil, body
32+
assert_nil body
3333
true
3434
end.returns(FakeResponse.new)
3535

0 commit comments

Comments
 (0)