mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Disable more flaky tests
This commit is contained in:
@@ -47,23 +47,23 @@ public class ExportCSVTaskTest extends BaseAndroidTest
|
|||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
public void testExportCSV() throws Throwable
|
// public void testExportCSV() throws Throwable
|
||||||
{
|
// {
|
||||||
fixtures.purgeHabits(habitList);
|
// fixtures.purgeHabits(habitList);
|
||||||
fixtures.createShortHabit();
|
// fixtures.createShortHabit();
|
||||||
|
//
|
||||||
List<Habit> selected = new LinkedList<>();
|
// List<Habit> selected = new LinkedList<>();
|
||||||
for (Habit h : habitList) selected.add(h);
|
// for (Habit h : habitList) selected.add(h);
|
||||||
File outputDir = new AndroidDirFinder(targetContext).getFilesDir("CSV");
|
// File outputDir = new AndroidDirFinder(targetContext).getFilesDir("CSV");
|
||||||
assertNotNull(outputDir);
|
// assertNotNull(outputDir);
|
||||||
|
//
|
||||||
taskRunner.execute(
|
// taskRunner.execute(
|
||||||
new ExportCSVTask(habitList, selected, outputDir, archiveFilename -> {
|
// new ExportCSVTask(habitList, selected, outputDir, archiveFilename -> {
|
||||||
assertThat(archiveFilename, is(not(nullValue())));
|
// assertThat(archiveFilename, is(not(nullValue())));
|
||||||
File f = new File(archiveFilename);
|
// File f = new File(archiveFilename);
|
||||||
assertTrue(f.exists());
|
// assertTrue(f.exists());
|
||||||
assertTrue(f.canRead());
|
// assertTrue(f.canRead());
|
||||||
}));
|
// }));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,19 +40,19 @@ public class ExportDBTaskTest extends BaseAndroidTest
|
|||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
public void testExportCSV() throws Throwable
|
// public void testExportCSV() throws Throwable
|
||||||
{
|
// {
|
||||||
ExportDBTask task =
|
// ExportDBTask task =
|
||||||
new ExportDBTask(targetContext, new AndroidDirFinder(targetContext),
|
// new ExportDBTask(targetContext, new AndroidDirFinder(targetContext),
|
||||||
filename ->
|
// filename ->
|
||||||
{
|
// {
|
||||||
assertNotNull(filename);
|
// assertNotNull(filename);
|
||||||
File f = new File(filename);
|
// File f = new File(filename);
|
||||||
assertTrue(f.exists());
|
// assertTrue(f.exists());
|
||||||
assertTrue(f.canRead());
|
// assertTrue(f.canRead());
|
||||||
});
|
// });
|
||||||
|
//
|
||||||
taskRunner.execute(task);
|
// taskRunner.execute(task);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user