()
| 12 | const host = "ya.ru"; |
| 13 | |
| 14 | function next() { |
| 15 | let request = new Request({host, path: "/", |
| 16 | port: 443, Socket: SecureSocket, secure: {verify: true}}); |
| 17 | request.callback = function(message, value, etc) { |
| 18 | this.close(); |
| 19 | if (message < 0) |
| 20 | $DONE(); |
| 21 | else { |
| 22 | if (Resource.exists("ca107.der")) |
| 23 | $DONE(`didn't expect root certificate for ${host} to be found`); |
| 24 | $DONE("unexpected success"); |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | let request = new Request({host, path: "/", |
| 30 | port: 443, Socket: SecureSocket, secure: {verify: false}}); |
no test coverage detected