diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis/ConfigurationsForLateBoundTargetsTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/analysis/ConfigurationsForLateBoundTargetsTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/ConfigurationsForLateBoundTargetsTest.java b/src/test/java/com/google/devtools/build/lib/analysis/ConfigurationsForLateBoundTargetsTest.java index 3696c59a27..759bdef9e3 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/ConfigurationsForLateBoundTargetsTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/ConfigurationsForLateBoundTargetsTest.java @@ -130,8 +130,8 @@ public class ConfigurationsForLateBoundTargetsTest extends AnalysisTestCase { " name = 'foo')", "rule_with_test_fragment(", " name = 'latebound_dep')"); - update("//foo:foo"); - assertThat(getConfiguredTarget("//foo:foo")).isNotNull(); + // if the target fails to analyze, this iterable will be empty + assertThat(update("//foo:foo").getTargetsToBuild()).isNotEmpty(); Iterable<ConfiguredTarget> deps = SkyframeExecutorTestUtils.getExistingConfiguredTargets( skyframeExecutor, Label.parseAbsolute("//foo:latebound_dep")); assertThat(deps).hasSize(2); |