diff --git a/sdk/src/androidTest/java/com/bugsnag/android/ErrorStoreAsyncTest.java b/sdk/src/androidTest/java/com/bugsnag/android/ErrorStoreAsyncTest.java deleted file mode 100644 index 3777e7561a..0000000000 --- a/sdk/src/androidTest/java/com/bugsnag/android/ErrorStoreAsyncTest.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.bugsnag.android; - -import android.support.test.InstrumentationRegistry; -import android.support.test.filters.SmallTest; -import android.support.test.runner.AndroidJUnit4; - -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; - -import java.io.File; -import java.util.Map; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicInteger; - -import static org.junit.Assert.*; - - -/** - * Tests that only 1 request is sent in the case where stored reports are concurrently flushed. - * This can occur in the following scenarios: - *
- * - Client initialisation
- * - Network connectivity changes
- * - When catching an unhandled exception
- */
-@RunWith(AndroidJUnit4.class)
-@SmallTest
-public class ErrorStoreAsyncTest {
-
- private ErrorStore errorStore;
- private Configuration config;
- private File errorStorageDir;
- private ErrorReportApiClient apiClient;
-
- private CountDownLatch countDownLatch;
- private AtomicInteger requestCount;
-
- @Before
- public void setUp() throws Exception {
- requestCount = new AtomicInteger();
- countDownLatch = new CountDownLatch(2); // should only ever be called once
-
- apiClient = new ErrorReportApiClient() {
- @Override
- public void postReport(String urlString,
- Report report,
- Map