Blob Blame History Raw
commit 015a0b8120c17c1e9591b1ac582adc4412879487
Author: Tom Hughes <tom@compton.nu>
Date:   Sun Jul 15 18:58:38 2018 +0100

    Use a bogus port to test failed connections
    
    Using a bogus host is problematic in koji because you have
    to wait for the name lookup to timeout.

diff --git a/test/integration/client/promise-api-tests.js b/test/integration/client/promise-api-tests.js
index 80337c4..c6752e4 100644
--- a/test/integration/client/promise-api-tests.js
+++ b/test/integration/client/promise-api-tests.js
@@ -24,7 +24,7 @@ suite.test('valid connection completes promise', () => {
 })
 
 suite.test('invalid connection rejects promise', (done) => {
-  const client = new pg.Client({ host: 'alksdjflaskdfj' })
+  const client = new pg.Client({ port: '12346' })
   return client.connect()
     .catch(e => {
       assert(e instanceof Error)