Skip to content

Commit 466cfda

Browse files
committed
use delay for better test running
1 parent fe83c25 commit 466cfda

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/SpotifyConnect/SPOCTestApiPrevious.class.st

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ SPOCTestApiPrevious >> testApiPreviousExecute [
3333

3434
{
3535
#category : #testing,
36-
#'squeak_changestamp' : 'VE 7/9/2024 11:32'
36+
#'squeak_changestamp' : 'TL 7/12/2024 16:26'
3737
}
3838
SPOCTestApiPrevious >> testSkipToPreviousOn [
3939

4040
| oldPlaybackState newPlaybackState |
4141
oldPlaybackState := self getPlaybackState.
4242
self apiEndpoint skipToPreviousOn: oldPlaybackState device id.
43+
(Delay forSeconds: 0.6) wait.
4344
newPlaybackState := self getPlaybackState.
4445
self assert: newPlaybackState track id ~= oldPlaybackState track id.
4546
self assert: newPlaybackState isPlaying

src/SpotifyConnect/SPOCTestApiVolume.class.st

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SPOCTestApiVolume >> testApiVolumeExecute [
3737

3838
{
3939
#category : #testing,
40-
#'squeak_changestamp' : 'TL 6/24/2024 02:41'
40+
#'squeak_changestamp' : 'TL 7/12/2024 16:27'
4141
}
4242
SPOCTestApiVolume >> testChangeVolumeTo [
4343

@@ -46,6 +46,7 @@ SPOCTestApiVolume >> testChangeVolumeTo [
4646
device supportsVolume
4747
ifTrue: [newVolume := 70.
4848
self apiEndpoint changeVolumeTo: newVolume on: device id.
49+
(Delay forSeconds: 0.6) wait.
4950
self assert: self getPlaybackState device volume = newVolume]
5051
ifFalse: [self assert: true]
5152
]

src/SpotifyConnect/SPOCTestPlay.class.st

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ SPOCTestPlay >> testPlayOn [
2929

3030
{
3131
#category : #testing,
32-
#'squeak_changestamp' : 'TL 6/24/2024 02:30'
32+
#'squeak_changestamp' : 'TL 7/12/2024 16:28'
3333
}
3434
SPOCTestPlay >> testPlayTrackOn [
3535

3636
| playbackState |
3737
self apiEndpoint playTrack: '4PTG3Z6ehGkBFwjybzWkR8' on: self getPlaybackState device id.
38+
(Delay forSeconds: 0.6) wait.
3839
playbackState := self getPlaybackState.
3940
self assert: playbackState track id = '4PTG3Z6ehGkBFwjybzWkR8'.
4041
self assert: playbackState isPlaying

0 commit comments

Comments
 (0)