Project

General

Profile

Actions

Refactor #28426

closed

support mocha >= 1.10

Added by Anonymous over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Fixed in Releases:
Found in Releases:

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] ===============================================================================

Actions #1

Updated by The Foreman Bot over 4 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
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/688 added
Actions #3

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.0.0 added
Actions #4

Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF