 					message: 'Second message',
 					timestamp: Date.now()
 				}]
+				.delay(2000)
 				.then =>
 					resin.logs.history(@uuid)
 				.then (logs) ->

							message: 'New message',
							timestamp: Date.now()
						}]
						.catch(reject)

						Promise.delay(2000)
						.then ->
							resolve(lines)
				.then (lines) ->

					message: 'Existing message',
					timestamp: Date.now()
				}]
				.then =>
					resin.logs.subscribe(@uuid)
				.then (logs) =>
					new Promise (resolve, reject) =>
						lines = []
