From 01a5e5e69f7b6bc65ba4529c71f2c332a03db8ed Mon Sep 17 00:00:00 2001 From: Daniel Bowman Date: Thu, 22 Nov 2018 10:26:19 +0000 Subject: Fix failing test #916 Testing previous relies on the player state. The test in it's current form relies on too many side effects for a good unit test. Setting the player state manually for now. --- .../java/github/daneren2005/dsub/service/DownloadServiceTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/androidTest/java/github/daneren2005') diff --git a/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java b/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java index 37e91642..2e10b977 100644 --- a/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java +++ b/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java @@ -132,6 +132,7 @@ public class DownloadServiceTest extends // Do a next before the previous downloadService.next(); + downloadService.setPlayerState(STARTED); // Do the previous downloadService.previous(); -- cgit v1.2.3