Skip to content

Commit

Permalink
Fixing up tests a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
aylanonsense committed Jun 7, 2019
1 parent 34da2f3 commit dabe016
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testMessageNetwork.lua
Expand Up @@ -82,7 +82,7 @@ describe('Message network', function()
clients[1]:connect()
assert.falsy(receivedMessage)
clients[1]:send('hello')
assert.truthy(receivedMessage)
assert.equal(receivedMessage, 'hello')
end)

it('the server can send messages to its clients', function()
Expand All @@ -93,7 +93,7 @@ describe('Message network', function()
clients[1]:connect()
assert.falsy(receivedMessage)
server:send(1, 'hello')
assert.truthy(receivedMessage)
assert.equal(receivedMessage, 'hello')
end)
end)

Expand All @@ -109,7 +109,7 @@ describe('Message network', function()
progressTime(0.190)
assert.falsy(receivedMessage)
progressTime(0.020)
assert.truthy(receivedMessage)
assert.equal(receivedMessage, 'hello')
end)

it('the server can send messages to its clients', function()
Expand All @@ -123,7 +123,7 @@ describe('Message network', function()
progressTime(0.190)
assert.falsy(receivedMessage)
progressTime(0.020)
assert.truthy(receivedMessage)
assert.equal(receivedMessage, 'hello')
end)
end)
end)

0 comments on commit dabe016

Please sign in to comment.