 # Test handing off a populated rewind buffer and active source from one
 # master to another, as we would during a graceful restart. Test that
 # the new master is listening on the correct ports.
+
+debug = require("debug")("sm:tests:master_handoffs")
 
 MasterMode      = $src "modes/master"
 IcecastSource   = $src "util/icecast_source"

                    m2config = msg
                    cb null, "OK"

            okF = ->
                m2rpc.request "OK", (err,msg) ->
                    return okF() if err
                    done()
            okF()

        # this is getting masked by listening for our OK above

        m2config = null

        before (done) ->
            this.timeout 10000
            m2 = cp.fork "./index.js", ["--handoff",master_config...]

            m2rpc = new RPC m2, functions:
