[DRE-maint] Bug#912274: ruby-clockwork FTBFS: Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test

Helmut Grohne helmut at subdivi.de
Mon Oct 29 19:14:47 GMT 2018


Source: ruby-clockwork
Version: 1.2.0-3
Severity: serious
Tags: ftbfs

ruby-clockwork fails to build from source in unstable.

|   1) Error:
| Clockwork::Event::#thread?::manager config thread option set to true#test_0001_is true:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/event_test.rb:12:in `block (4 levels) in <top (required)>'
| 
|   2) Error:
| Clockwork::Event::#thread?::manager config thread option set to true#test_0002_is false when event thread option set:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/event_test.rb:12:in `block (4 levels) in <top (required)>'
| 
|   3) Error:
| Clockwork::Manager#test_0013_exceptions still set the last timestamp to avoid spastic error loops:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/manager_test.rb:131:in `block (2 levels) in <top (required)>'
| 
|   4) Error:
| Clockwork#test_0006_support module re-open style:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/clockwork_test.rb:80:in `block (2 levels) in <top (required)>'
| 
|   5) Error:
| Clockwork#test_0001_should run events with configured logger:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/clockwork_test.rb:24:in `block (2 levels) in <top (required)>'
| 
|   6) Error:
| Clockwork#test_0002_should log event correctly:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/clockwork_test.rb:37:in `block (2 levels) in <top (required)>'
| 
|   7) Error:
| Clockwork#test_0004_should not run anything after reset:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/clockwork_test.rb:62:in `block (2 levels) in <top (required)>'
| 
|   8) Error:
| Clockwork#test_0003_should pass event without modification to handler:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/clockwork_test.rb:50:in `block (2 levels) in <top (required)>'
| 
|   9) Error:
| Clockwork#test_0005_should pass all arguments to every:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/clockwork_test.rb:69:in `block (2 levels) in <top (required)>'
| 
|  10) Error:
| Clockwork::Event::#thread?::manager config thread option not set#test_0001_is true if event thread option is true:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/event_test.rb:28:in `block (4 levels) in <top (required)>'
| 
|  11) Error:
| Clockwork::Manager::max_threads#test_0001_should warn when an event tries to generate threads more than max_threads:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/manager_test.rb:276:in `block (3 levels) in <top (required)>'
| 
|  12) Error:
| Clockwork::Manager::max_threads#test_0002_should not warn when thread is managed by others:
| Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
|     /<<PKGBUILDDIR>>/test/manager_test.rb:291:in `block (3 levels) in <top (required)>'
| 
| 85 runs, 139 assertions, 0 failures, 12 errors, 0 skips
| rake aborted!
| Command failed with status (1): [ruby -w -I"test"  "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/at_test.rb" "test/clockwork_test.rb" "test/database_events/sync_performer_test.rb" "test/event_test.rb" "test/manager_test.rb" "test/database_events/test_helpers.rb" -v]
| 
| Tasks: TOP => default
| (See full trace by running task with --trace)
| ERROR: Test "ruby2.5" failed. Exiting.
| dh_auto_install: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-clockwork returned exit code 1
| make: *** [debian/rules:6: binary] Error 1
| dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

Helmut



More information about the Pkg-ruby-extras-maintainers mailing list