| 791 | }); |
| 792 | |
| 793 | function getControlConnectionMock(hosts, options) { |
| 794 | function ControlConnectionMock() { |
| 795 | this.hosts = hosts || new HostMap(); |
| 796 | this.metadata = new Metadata(options || {}); |
| 797 | this.profileManager = newProfileManager(options); |
| 798 | this.host = { setDistance: utils.noop }; |
| 799 | this.shutdown = utils.noop; |
| 800 | } |
| 801 | |
| 802 | ControlConnectionMock.prototype.init = async () => {}; |
| 803 | |
| 804 | return ControlConnectionMock; |
| 805 | } |
| 806 | |
| 807 | function getOptions(options) { |
| 808 | return clientOptions.extend({ contactPoints: ['hostip1']}, options); |