       conn.write "3:200,"
       conn.end()
 
-  worker.listen sockPath, () ->
-    client = createConnection sockPath
+  worker.listen 0, ->
+    client = createConnection worker.address().port
 
     client.on 'close', ->
       test.done()

exports.testClientUncompletedResponse = (test) ->
  test.expect 3

  sockPath = tmpFile()

  worker = createDuplexServer (conn) ->
    worker.close()


{createConnection} = require 'nack/client'

config = __dirname + "/fixtures/hello.ru"

createDuplexServer = if net.createServer().allowHalfOpen?
  (listener) ->
