Skip to content

Commit f21799f

Browse files
committed
update executor usages in unit tests.
1 parent c83d392 commit f21799f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

firebase-ml-modeldownloader/src/test/java/com/google/firebase/ml/modeldownloader/FirebaseModelDownloaderTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import java.util.concurrent.ExecutionException;
3131
import java.util.concurrent.ExecutorService;
3232
import java.util.concurrent.Executors;
33-
import java.util.concurrent.TimeUnit;
34-
import org.junit.After;
3533
import org.junit.Before;
3634
import org.junit.Test;
3735
import org.junit.runner.RunWith;
@@ -72,15 +70,6 @@ public void setUp() {
7270
firebaseModelDownloader = new FirebaseModelDownloader(FIREBASE_OPTIONS, mockPrefs, executor);
7371
}
7472

75-
@After
76-
public void cleanUp() {
77-
try {
78-
executor.awaitTermination(250, TimeUnit.MILLISECONDS);
79-
} catch (InterruptedException e) {
80-
// do nothing.
81-
}
82-
}
83-
8473
@Test
8574
public void getModel_unimplemented() {
8675
assertThrows(
@@ -115,8 +104,6 @@ public void listDownloadedModels_returnsModelList()
115104

116105
assertThat(task.isComplete()).isTrue();
117106
assertEquals(customModelSet, Collections.singleton(CUSTOM_MODEL));
118-
119-
executor.awaitTermination(500, TimeUnit.MILLISECONDS);
120107
}
121108

122109
@Test

0 commit comments

Comments
 (0)