Fix flaky gradle integration test

This commit is contained in:
Alpar Torok 2018-11-14 16:51:54 +02:00
parent c7ea0343d2
commit a3cb74190c

View File

@ -55,6 +55,9 @@ public class TestClustersPluginIT extends GradleIntegrationTestCase {
}
public void testUseClusterByUpToDateTask() {
// Run it once, ignoring the result and again to make sure it's considered up to date.
// Gradle randomly considers tasks without inputs and outputs as as up-to-date or success on the first run
getTestClustersRunner("upToDate1", "upToDate2").build();
BuildResult result = getTestClustersRunner("upToDate1", "upToDate2").build();
assertTaskUpToDate(result, ":upToDate1", ":upToDate2");
assertNotStarted(result);