@@ -146,7 +146,7 @@ class VoiceMemosTests: XCTestCase {
146
146
var environment = VoiceMemosEnvironment . failing
147
147
environment. audioPlayer. play = { _, _ in
148
148
Effect ( value: . didFinishPlaying( successfully: true ) )
149
- . delay ( 1 , on: scheduler)
149
+ . delay ( 1.1 , on: scheduler)
150
150
}
151
151
environment. mainQueue = scheduler
152
152
@@ -214,6 +214,7 @@ class VoiceMemosTests: XCTestCase {
214
214
store. send ( . voiceMemo( id: url, action: . playButtonTapped) ) {
215
215
$0. voiceMemos [ id: url] ? . mode = . playing( progress: 0 )
216
216
}
217
+ store. receive ( . voiceMemo( id: url, action: . timerUpdated( 0 ) ) )
217
218
store. receive ( . voiceMemo( id: url, action: . audioPlayerClient( . failure( . decodeErrorDidOccur) ) ) ) {
218
219
$0. alert = . init( title: . init( " Voice memo playback failed. " ) )
219
220
$0. voiceMemos [ id: url] ? . mode = . notPlaying
@@ -302,6 +303,7 @@ class VoiceMemosTests: XCTestCase {
302
303
store. send ( . voiceMemo( id: url, action: . playButtonTapped) ) {
303
304
$0. voiceMemos [ id: url] ? . mode = . playing( progress: 0 )
304
305
}
306
+ store. receive ( . voiceMemo( id: url, action: . timerUpdated( 0 ) ) )
305
307
store. send ( . voiceMemo( id: url, action: . delete) ) {
306
308
$0. voiceMemos = [ ]
307
309
}
0 commit comments