$OpenBSD: patch-test_parallel_test-http-dns-error_js,v 1.2 2018/02/10 14:50:35 abieber Exp $

Index: test/parallel/test-http-dns-error.js
--- test/parallel/test-http-dns-error.js.orig
+++ test/parallel/test-http-dns-error.js
@@ -39,9 +39,13 @@ function test(mod) {
 
   // Bad host name should not throw an uncatchable exception.
   // Ensure that there is time to attach an error listener.
+  var err_check = 'ENOTFOUND';
+  if (common.isOpenBSD) {
+    err_check = 'EAI_FAIL'
+  }
   const req1 = mod.get({ host: host, port: 42 }, do_not_call);
   req1.on('error', common.mustCall(function(err) {
-    assert.strictEqual(err.code, 'ENOTFOUND');
+    assert.strictEqual(err.code, err_check);
   }));
   // http.get() called req1.end() for us
 
@@ -51,7 +55,7 @@ function test(mod) {
     port: 42
   }, do_not_call);
   req2.on('error', common.mustCall(function(err) {
-    assert.strictEqual(err.code, 'ENOTFOUND');
+    assert.strictEqual(err.code, err_check);
   }));
   req2.end();
 }
