Commit 2d909b20 authored by Leo Iannacone's avatar Leo Iannacone

test status debomatic

parent e13da065
...@@ -88,9 +88,12 @@ describe 'client', -> ...@@ -88,9 +88,12 @@ describe 'client', ->
done() done()
) )
it 'on getting distributions', (done) -> it 'on connecting', (done) ->
client.on 'connect', () ->
client.on events.broadcast.distributions, (data) -> client.on events.broadcast.distributions, (data) ->
data.should.be.eql(['trusty', 'unstable']) data.should.be.eql(['trusty', 'unstable'])
client.on events.broadcast.status_debomatic, (data) ->
data.running.should.be.false
done() done()
it 'on getting distribution packages', (done) -> it 'on getting distribution packages', (done) ->
...@@ -137,8 +140,9 @@ describe 'client', -> ...@@ -137,8 +140,9 @@ describe 'client', ->
done() done()
helper.append_file('unstable', 'test_1.2.3', 'buildlog', 'this is an appending test') helper.append_file('unstable', 'test_1.2.3', 'buildlog', 'this is an appending test')
after( () -> after( (done) ->
helper.clean_all() helper.clean_all()
done()
) )
# process.on 'exit', () -> # process.on 'exit', () ->
......
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