Project

General

Profile

Actions

Bug #28406

closed

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

Added by Evgeni Golov about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
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 1 (0 open1 closed)

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

Also available in: Atom PDF