mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 13:26:02 +00:00
Fix flaky gradle integration test
This commit is contained in:
parent
c7ea0343d2
commit
a3cb74190c
@ -55,6 +55,9 @@ public class TestClustersPluginIT extends GradleIntegrationTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testUseClusterByUpToDateTask() {
|
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();
|
BuildResult result = getTestClustersRunner("upToDate1", "upToDate2").build();
|
||||||
assertTaskUpToDate(result, ":upToDate1", ":upToDate2");
|
assertTaskUpToDate(result, ":upToDate1", ":upToDate2");
|
||||||
assertNotStarted(result);
|
assertNotStarted(result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user