Advance TestClock instead of sleeping.

This commit is contained in:
Florian Friemel 2018-06-28 17:14:50 +01:00
parent 941719ab8b
commit 61d9d475c8
No known key found for this signature in database
GPG Key ID: B355EFB36013CB32

View File

@ -1848,7 +1848,7 @@ abstract class VaultQueryTestsBase : VaultQueryParties {
database.transaction {
vaultFiller.fillWithSomeTestLinearStates(1, "TEST1")
vaultFiller.fillWithSomeTestLinearStates(1, "TEST2")
sleep(1000)
services.clock.advanceBy(1.seconds)
vaultFiller.fillWithSomeTestLinearStates(1, "TEST3")
// 2 unconsumed states with same external ID