Commit 578af473 authored by Yadd's avatar Yadd
Browse files

Add patch to clean test

Closes: #906390
parent ca3e73f3
Loading
Loading
Loading
Loading

debian/patches/series

0 → 100644
+1 −0
Original line number Diff line number Diff line
stop-server-at-test-end.diff
+16 −0
Original line number Diff line number Diff line
Description: server wasn't closed at test end
Author: Xavier Guimard <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/906390
Forwarded: https://github.com/expressjs/vhost/issues/34
Last-Update: 2019-02-14

--- a/test/test.js
+++ b/test/test.js
@@ -207,6 +207,7 @@
       .get('/')
       .set('Host', 'user-bob.foo.com:8080')
       .expect(200, '[["0","bob"],["1","foo"],["host","user-bob.foo.com:8080"],["hostname","user-bob.foo.com"],["length",2]]', done)
+      setTimeout(app.close,2000)
     })
   })
 })