Commit 53054ab6 authored by Leo Iannacone's avatar Leo Iannacone

update refernce do debomatic-webui bin and fix some coffeelint warning

parent 8006a05f
......@@ -80,18 +80,18 @@ options =
'force new connection': true
describe 'start server', ->
before( (done) ->
before( (done) =>
helper.append_json('')
helper.make_distribution('trusty')
helper.make_distribution('unstable')
server = spawn('coffee', ['../debomatic-webui.coffee', '-c', 'tests.config.coffee'])
server = spawn('coffee', ['../debomatic-webui', '-c', 'tests.config.coffee'])
server.stdout.on 'data', (data) -> console.log('SERVER OUT: ', data.toString('utf-8'))
server.stderr.on 'data', (data) -> console.error('SERVER ERR', data.toString('utf-8'))
server.on 'exit', (code) ->
console.error('Server exit with code ' + code);
console.error('Server exit with code ' + code)
process.exit(code)
this.timeout(7000);
setTimeout(done, 500);
this.timeout(7000)
setTimeout(done, 500)
)
it 'server started', (done) ->
......@@ -117,7 +117,7 @@ describe 'client', ->
done()
)
it 'get distributions', (done)->
it 'get distributions', (done) ->
client.once events.broadcast.distributions, (data) ->
data.should.be.eql(['trusty', 'unstable'])
done()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment