aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java b/src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java
index 34218e67c8..34fb706b09 100644
--- a/src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java
+++ b/src/test/java/com/google/devtools/build/lib/skyframe/util/SkyframeExecutorTestUtils.java
@@ -34,10 +34,8 @@ import com.google.devtools.build.skyframe.EvaluationResult;
import com.google.devtools.build.skyframe.MemoizingEvaluator;
import com.google.devtools.build.skyframe.SkyKey;
import com.google.devtools.build.skyframe.SkyValue;
-
import java.util.Collection;
import java.util.List;
-
import javax.annotation.Nullable;
/**
@@ -57,11 +55,11 @@ public class SkyframeExecutorTestUtils {
}
/**
- * Returns an existing error info, or {@code null} if the given key is not currently in the
- * graph.
+ * Returns an existing error info, or {@code null} if the given key is not currently in the graph.
*/
@Nullable
- public static ErrorInfo getExistingError(SkyframeExecutor skyframeExecutor, SkyKey key) {
+ public static ErrorInfo getExistingError(SkyframeExecutor skyframeExecutor, SkyKey key)
+ throws InterruptedException {
return skyframeExecutor.getEvaluatorForTesting().getExistingErrorForTesting(key);
}
@@ -165,10 +163,11 @@ public class SkyframeExecutorTestUtils {
* Returns the error info for an existing target value, or {@code null} if there is not an
* appropriate target value key in the graph.
*
- * This helper is provided so legacy tests don't need to know about details of skyframe keys.
+ * <p>This helper is provided so legacy tests don't need to know about details of skyframe keys.
*/
@Nullable
- public static ErrorInfo getExistingFailedTarget(SkyframeExecutor skyframeExecutor, Label label) {
+ public static ErrorInfo getExistingFailedTarget(SkyframeExecutor skyframeExecutor, Label label)
+ throws InterruptedException {
SkyKey key = TargetMarkerValue.key(label);
return getExistingError(skyframeExecutor, key);
}