Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marthasharkey committed Jan 8, 2025
1 parent 3d7d6b0 commit 02ae856
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

import org.enso.base.CompareException;
import org.enso.base.Text_Utils;
import org.enso.table.data.column.operation.CountUntrimmed;
Expand Down Expand Up @@ -88,13 +89,13 @@ public Long cachedUntrimmedCount() throws InterruptedException {
}

/**
* Counts the number of cells in the columns with whitespace. If the calculation fails then it
* Counts the number of cells in the columns with non trivial whitespace. If the calculation fails then it
* returns null.
*
* @return the number of cells with whitespace
*/
public Long cachedWhitespaceCount() throws InterruptedException {
if (untrimmedCount.isCancelled()) {
if (whitespaceCount.isCancelled()) {
// Need to recompute the value, as was cancelled.
whitespaceCount =
CompletableFuture.completedFuture(
Expand All @@ -103,7 +104,7 @@ public Long cachedWhitespaceCount() throws InterruptedException {
}

try {
return untrimmedCount.get();
return whitespaceCount.get();
} catch (ExecutionException e) {
LOGGER.error("Failed to compute non trivial whitespace count", e);
return null;
Expand Down

0 comments on commit 02ae856

Please sign in to comment.