aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java
index a21c6f5826..869423e55b 100644
--- a/src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java
+++ b/src/test/java/com/google/devtools/build/lib/skyframe/PrepareDepsOfPatternsFunctionTest.java
@@ -30,13 +30,11 @@ import com.google.devtools.build.skyframe.EvaluationResult;
import com.google.devtools.build.skyframe.SkyKey;
import com.google.devtools.build.skyframe.SkyValue;
import com.google.devtools.build.skyframe.WalkableGraph;
-
+import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
-import java.io.IOException;
-
/** Tests for {@link com.google.devtools.build.lib.skyframe.PrepareDepsOfPatternsFunction}. */
@RunWith(JUnit4.class)
public class PrepareDepsOfPatternsFunctionTest extends BuildViewTestCase {
@@ -250,16 +248,18 @@ public class PrepareDepsOfPatternsFunctionTest extends BuildViewTestCase {
scratch.file("bar/BUILD");
}
- private void assertValidValue(WalkableGraph graph, SkyKey key) {
+ private static void assertValidValue(WalkableGraph graph, SkyKey key)
+ throws InterruptedException {
assertValidValue(graph, key, /*expectTransitiveException=*/ false);
}
/**
- * A node in the walkable graph may have both a value and an exception. This happens when one
- * of a node's transitive dependencies throws an exception, but its parent recovers from it.
+ * A node in the walkable graph may have both a value and an exception. This happens when one of a
+ * node's transitive dependencies throws an exception, but its parent recovers from it.
*/
- private void assertValidValue(
- WalkableGraph graph, SkyKey key, boolean expectTransitiveException) {
+ private static void assertValidValue(
+ WalkableGraph graph, SkyKey key, boolean expectTransitiveException)
+ throws InterruptedException {
assertTrue(graph.exists(key));
assertNotNull(graph.getValue(key));
if (expectTransitiveException) {
@@ -269,7 +269,8 @@ public class PrepareDepsOfPatternsFunctionTest extends BuildViewTestCase {
}
}
- private Exception assertException(WalkableGraph graph, SkyKey key) {
+ private static Exception assertException(WalkableGraph graph, SkyKey key)
+ throws InterruptedException {
assertTrue(graph.exists(key));
assertNull(graph.getValue(key));
Exception exception = graph.getException(key);