Actions
Refactor #28426
closed
support mocha >= 1.10
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
Description
mocha 1.10 breaks tests:
[2019-12-04T18:22:37.551Z] =============================================================================== [2019-12-04T18:22:37.551Z] Failure: test_choose_protocol_and_fetch_wget_with_read_timeout(TftpTest): [2019-12-04T18:22:37.551Z] unexpected invocation: #<Mock:start>.start() [2019-12-04T18:22:37.551Z] satisfied expectations: [2019-12-04T18:22:37.551Z] - expected exactly once, invoked once: Proxy::HttpDownload.new("https://proxy.test", "/destination", "1000", 10, 10) [2019-12-04T18:22:37.551Z] /home/jenkins/workspace/smart-proxy-develop-source-release/modules/tftp/server.rb:160:in `choose_protocol_and_fetch' [2019-12-04T18:22:37.551Z] /home/jenkins/workspace/smart-proxy-develop-source-release/test/tftp/tftp_test.rb:90:in `test_choose_protocol_and_fetch_wget_with_read_timeout' [2019-12-04T18:22:37.551Z] 87: ::Proxy::HttpDownload.expects(:new).returns(stub(:start)). [2019-12-04T18:22:37.551Z] 88: with(src, dst, tftp_read_timeout, tftp_connect_timeout, tftp_dns_timeout) [2019-12-04T18:22:37.551Z] 89: [2019-12-04T18:22:37.551Z] => 90: Proxy::TFTP.choose_protocol_and_fetch src, dst [2019-12-04T18:22:37.551Z] 91: end [2019-12-04T18:22:37.551Z] 92: [2019-12-04T18:22:37.551Z] 93: def test_choose_protocol_and_fetch_nfs [2019-12-04T18:22:37.551Z] =============================================================================== [2019-12-04T18:22:37.551Z] =============================================================================== [2019-12-04T18:22:37.551Z] Failure: test_choose_protocol_and_fetch_wget_with_timeouts(TftpTest): [2019-12-04T18:22:37.551Z] unexpected invocation: #<Mock:start>.start() [2019-12-04T18:22:37.551Z] satisfied expectations: [2019-12-04T18:22:37.551Z] - expected exactly once, invoked once: Proxy::HttpDownload.new("https://proxy.test", "/destination", "1000", "40", "14300") [2019-12-04T18:22:37.551Z] /home/jenkins/workspace/smart-proxy-develop-source-release/modules/tftp/server.rb:160:in `choose_protocol_and_fetch' [2019-12-04T18:22:37.551Z] /home/jenkins/workspace/smart-proxy-develop-source-release/test/tftp/tftp_test.rb:75:in `test_choose_protocol_and_fetch_wget_with_timeouts' [2019-12-04T18:22:37.551Z] 72: ::Proxy::HttpDownload.expects(:new).returns(stub(:start)). [2019-12-04T18:22:37.551Z] 73: with(src, dst, tftp_read_timeout, tftp_connect_timeout, tftp_dns_timeout) [2019-12-04T18:22:37.551Z] 74: [2019-12-04T18:22:37.551Z] => 75: Proxy::TFTP.choose_protocol_and_fetch src, dst [2019-12-04T18:22:37.551Z] 76: end [2019-12-04T18:22:37.551Z] 77: [2019-12-04T18:22:37.551Z] 78: def test_choose_protocol_and_fetch_wget_with_read_timeout [2019-12-04T18:22:37.551Z] ===============================================================================
Updated by The Foreman Bot about 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Anonymous
- Pull request https://github.com/theforeman/smart-proxy/pull/687 added
Updated by The Foreman Bot about 5 years ago
- Pull request https://github.com/theforeman/smart-proxy/pull/688 added
Updated by Anonymous about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 309376002e3a1752c243bc6e04726c48703a209f.
Actions