From 25fc3a427c803d9f3bb23c683a801d6ac270bb8f Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 11 Feb 2016 14:07:05 +0100 Subject: [PATCH] Fixed test logic. --- .../nutomic/syncthingandroid/test/util/FolderObserverTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java index 259693ae..d13bd9d7 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java @@ -92,7 +92,7 @@ public class FolderObserverTest extends AndroidTestCase mLatch = new CountDownLatch(1); testFile.createNewFile(); mLatch.await(1, TimeUnit.SECONDS); - assertEquals(0, mLatch.getCount()); + assertEquals(1, mLatch.getCount()); fo.stopWatching(); }