@After
  public void afterClass() {
    /*
     * If the query cancelation task is run, it will set the isCanceled
     * thread local on the query to true.
     *
     * We need to clean up that state between tests because they can run on this same thread.
     * In production, this cleanup is done in DefaultQuery after the query executes.
     */
    ExecutionContext.isCanceled.get().set(false);
    monitor.setLowMemory(false, 100);
  }
although max_execution_time is set as 10ms, the monitor thread can sleep more than the specified
time, so query will be cancelled at un-deterministic time after 10ms. We cannot assert on
specific time at which the query will be cancelled. We can only assert that the query will be
cancelled at one point after 10ms.
geode-core/src/test/java/org/apache/geode/cache/query/internal/QueryMonitorTest.java