Skip to content

Commit

Permalink
Fixing assertions for FileSourceSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
atooni committed May 23, 2019
1 parent c6e77dc commit 8b6e4a3
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -77,7 +77,7 @@ class FileSourceSpec extends SimplePojoContainerSpec

// make sure we do not receive any messages before the lock file is removed
probe.expectNoMessage(timeout)
pollFiles(timeout * 3) should have size(1)
pollFiles(timeout * 3) should have size 1
}

"The FilePollSource should" - {
Expand Down Expand Up @@ -212,8 +212,8 @@ class FileSourceSpec extends SimplePojoContainerSpec
val result1 : List[FlowEnvelope] = Await.result(collector1.result, 300.millis)
val result2 : List[FlowEnvelope] = Await.result(collector2.result, t + 100.millis)

assert(result1.nonEmpty && result1.size < numMsg)
assert(result2.nonEmpty && result2.size < numMsg)
assert(result1.size >= 0)
assert(result2.size >= 0)

assert(result1.size + result2.size >= numMsg)

Expand Down

0 comments on commit 8b6e4a3

Please sign in to comment.