Actions
Bug #27088
closedTest fail locally: Error details for private method `select' called for nil:NilClass:
Difficulty:
easy
Triaged:
Yes
Pull request:
Description
I am seeing this test to fail locally:
/home/lzap/work/smart-proxy/test/bmc/integration_test.rb:19:in `test_features' /home/lzap/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/json-2.2.0/lib/json/common.rb:156:in `parse' /home/lzap/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/json-2.2.0/lib/json/common.rb:156:in `parse' Error: test_features(BmcApiFeaturesTest): JSON::ParserError: 785: unexpected token at 'private method `select' called for nil:NilClass'
In logs I can see
2019-06-20T14:36:24 [E] private method `select' called for nil:NilClass 2019-06-20T14:36:24 [W] Error details for private method `select' called for nil:NilClass: <NoMethodError>: private method `select' called for nil:NilClass /home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:31:in `process_capabilities' /home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:19:in `block (2 levels) in <class:RootV2Api>' /home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:17:in `each' /home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:17:in `inject' /home/lzap/work/smart-proxy/modules/root/root_v2_api.rb:17:in `block in <class:RootV2Api>'
Actions