Skip to content

Commit

Permalink
Merge pull request #20 from oktadeveloper/stablize-timing-test
Browse files Browse the repository at this point in the history
allow longer sleep time for timing based test
  • Loading branch information
bdemers authored Jun 10, 2020
2 parents 2e3ebbd + 7a9b4c2 commit a2349bd
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ class ConsoleProgressBarTest {
ConsoleProgressBar progressBar = spy(new ConsoleProgressBar(stream, Duration.ofMillis(1)).start("test-start"))

progressBar.withCloseable {

sleep(10) // this should allow for each wit char to be used
sleep(100) // this should allow for each char to be used
it.info("test-message")
sleep(10) // this should allow for each wit char to be used
sleep(100) // this should allow for each char to be used
}

verify(progressBar).close()
Expand All @@ -60,6 +59,5 @@ class ConsoleProgressBarTest {
MatcherAssert.assertThat charValues, hasItem('|' as char)

MatcherAssert.assertThat outputString.getAllValues(), is(["test-start"])

}
}

0 comments on commit a2349bd

Please sign in to comment.