Use 0 seconds when forcing a flow checkpoint inside test

This commit is contained in:
Joseph Zuniga-Daly 2020-06-24 14:23:57 +01:00
parent fbe234574e
commit 296202d541

View File

@ -47,7 +47,7 @@ class MockNetworkCustomSerializerCheckpointTest{
val difficultToSerialize: ImmutableMap<String, Int> = immutableMapOf("foo" to purchase) val difficultToSerialize: ImmutableMap<String, Int> = immutableMapOf("foo" to purchase)
// Force a checkpoint // Force a checkpoint
sleep(Duration.ofSeconds(10), maySkipCheckpoint = false) sleep(Duration.ofSeconds(0), maySkipCheckpoint = false)
// Return value from deserialized object // Return value from deserialized object
return difficultToSerialize["foo"] ?: 0 return difficultToSerialize["foo"] ?: 0