Skip to content

ESQL: Allow some error in test #126865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

import static org.hamcrest.Matchers.either;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;

public class DriverTests extends ESTestCase {
/**
Expand Down Expand Up @@ -90,13 +91,13 @@ public void testProfileAndStatusFinishInOneRound() {
assertThat(driver.status().status(), equalTo(DriverStatus.Status.DONE));
assertThat(driver.status().started(), equalTo(startEpoch));
long sumRunningTime = tickTime * (nowSupplier.callCount - 1);
assertThat(driver.status().cpuNanos(), equalTo(sumRunningTime));
assertThat(driver.status().iterations(), equalTo((long) inPages.size()));
assertThat(driver.status().cpuNanos(), greaterThanOrEqualTo(sumRunningTime)); // GTE to work around not having #123290
assertThat(driver.status().iterations(), greaterThanOrEqualTo((long) inPages.size()));// GTE to work around not having #123290

logger.info("profile {}", driver.profile());
assertThat(driver.profile().tookNanos(), equalTo(waitTime + sumRunningTime));
assertThat(driver.profile().cpuNanos(), equalTo(sumRunningTime));
assertThat(driver.profile().iterations(), equalTo((long) inPages.size()));
assertThat(driver.profile().tookNanos(), greaterThanOrEqualTo(waitTime + sumRunningTime));
assertThat(driver.profile().cpuNanos(), greaterThanOrEqualTo(sumRunningTime));
assertThat(driver.profile().iterations(), greaterThanOrEqualTo((long) inPages.size()));
}

/**
Expand Down