@@ -146,7 +146,7 @@ class VoiceMemosTests: XCTestCase {
146146 var environment = VoiceMemosEnvironment . failing
147147 environment. audioPlayer. play = { _, _ in
148148 Effect ( value: . didFinishPlaying( successfully: true ) )
149- . delay ( 1 , on: scheduler)
149+ . delay ( 1.1 , on: scheduler)
150150 }
151151 environment. mainQueue = scheduler
152152
@@ -214,6 +214,7 @@ class VoiceMemosTests: XCTestCase {
214214 store. send ( . voiceMemo( id: url, action: . playButtonTapped) ) {
215215 $0. voiceMemos [ id: url] ? . mode = . playing( progress: 0 )
216216 }
217+ store. receive ( . voiceMemo( id: url, action: . timerUpdated( 0 ) ) )
217218 store. receive ( . voiceMemo( id: url, action: . audioPlayerClient( . failure( . decodeErrorDidOccur) ) ) ) {
218219 $0. alert = . init( title: . init( " Voice memo playback failed. " ) )
219220 $0. voiceMemos [ id: url] ? . mode = . notPlaying
@@ -302,6 +303,7 @@ class VoiceMemosTests: XCTestCase {
302303 store. send ( . voiceMemo( id: url, action: . playButtonTapped) ) {
303304 $0. voiceMemos [ id: url] ? . mode = . playing( progress: 0 )
304305 }
306+ store. receive ( . voiceMemo( id: url, action: . timerUpdated( 0 ) ) )
305307 store. send ( . voiceMemo( id: url, action: . delete) ) {
306308 $0. voiceMemos = [ ]
307309 }
0 commit comments