mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-08 04:13:06 +02:00
ExportImportTest: only cleanup if necessary.
This commit is contained in:
+3
-1
@@ -142,7 +142,9 @@ public class ExportImportTest {
|
|||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown() {
|
public void tearDown() {
|
||||||
contentProviderUtils.deleteTrack(context, trackId);
|
if (trackId != null) {
|
||||||
|
contentProviderUtils.deleteTrack(context, trackId);
|
||||||
|
}
|
||||||
if (importTrackId != null) {
|
if (importTrackId != null) {
|
||||||
contentProviderUtils.deleteTrack(context, importTrackId);
|
contentProviderUtils.deleteTrack(context, importTrackId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user