From a6b7c3117d7d181278cf2c160c4e5952ffc33c82 Mon Sep 17 00:00:00 2001 From: Victor Andreasson Date: Sun, 17 Mar 2024 15:26:12 +0100 Subject: [PATCH] fixup! Ensure that activities are fully deleted between tests --- .../java/com/orgzly/android/espresso/SyncingTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/androidTest/java/com/orgzly/android/espresso/SyncingTest.java b/app/src/androidTest/java/com/orgzly/android/espresso/SyncingTest.java index 6a5444f6e..cc612ebd2 100644 --- a/app/src/androidTest/java/com/orgzly/android/espresso/SyncingTest.java +++ b/app/src/androidTest/java/com/orgzly/android/espresso/SyncingTest.java @@ -62,7 +62,9 @@ public class SyncingTest extends OrgzlyTest { @Override public void tearDown() throws Exception { super.tearDown(); - scenario.close(); + if (scenario != null) { + scenario.close(); + } } private void sync() {