Project

General

Profile

Bug #28406

SystemStackError: stack level too deep when running tests with mocha 1.10

Added by Evgeni Golov 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

% bundle exec rake test TEST="test/unit/foreman/http_proxy_test.rb" 
The Apipie cache is turned off. Enable it and run apipie:cache rake task to speed up API calls.
Run options: --seed 37549

# Running:

.....E

Error:
HTTPProxyTest::Excon::Connection extension#test_0002_rescues requests and mentions proxy:
SystemStackError: stack level too deep
    test/unit/foreman/http_proxy_test.rb:120:in `block (2 levels) in <class:HTTPProxyTest>'
    test/test_helper.rb:68:in `before_setup'

bin/rails test test/unit/foreman/http_proxy_test.rb:130

E

Error:
HTTPProxyTest::Excon::Connection extension#test_0001_set @data[:proxy] to proxy:
SystemStackError: stack level too deep
    test/unit/foreman/http_proxy_test.rb:120:in `block (2 levels) in <class:HTTPProxyTest>'
    test/test_helper.rb:68:in `before_setup'

bin/rails test test/unit/foreman/http_proxy_test.rb:124

...............

Finished in 1.127359s, 19.5146 runs/s, 20.4017 assertions/s.
22 runs, 23 assertions, 0 failures, 2 errors, 0 skips

downgrading mocha to 1.9.0 fixes the issue


Related issues

Related to Foreman - Refactor #28638: require mocha 1.11+Closed

Associated revisions

Revision bdf54d4c (diff)
Added by Evgeni Golov 10 months ago

Fixes #28406 - pin mocha to < 1.10

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7227 added

#2 Updated by The Foreman Bot 10 months ago

  • Fixed in Releases 2.0.0 added

#3 Updated by Anonymous 10 months ago

  • Assignee deleted (Evgeni Golov)
  • Status changed from Ready For Testing to New
  • Fixed in Releases deleted (2.0.0)

#4 Updated by Evgeni Golov 10 months ago

  • Status changed from New to Closed

#5 Updated by Evgeni Golov 10 months ago

  • Status changed from Closed to New

#6 Updated by Anonymous 9 months ago

#7 Updated by Tomer Brisker 9 months ago

  • Status changed from New to Resolved

fixed in #28638

Also available in: Atom PDF