 {createConnection} = require 'nack/client'
 
 config = __dirname + "/fixtures/hello.ru"
-
-tmpFile = ->
-  pid  = process.pid
-  rand = Math.floor Math.random() * 10000000000
-  "/tmp/nack." + pid + "." + rand
 
 createDuplexServer = if net.createServer().allowHalfOpen?
   (listener) ->

      conn.write "3:200,"
      conn.end()

  worker.listen sockPath, () ->
    client = createConnection sockPath

    client.on 'close', ->
      test.done()

      conn.write "0:,"
      conn.end()

  worker.listen 0, ->
    client = createConnection worker.address().port

    client.on 'close', ->
      test.done()
