Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Feb 17, 2023
1 parent 1381185 commit f4c7351
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void testHostFeatures() throws Exception {
"--incompatible_use_host_features=true");
scratch.file("a/BUILD", "cc_library(name = 'a')");
ImmutableSet<String> features =
getRuleContext(getConfiguredTarget("//a", getExecConfiguration())).getFeatures();
getRuleContext(getConfiguredTarget("//a", getTargetConfiguration())).getFeatures();
assertThat(features).contains("host_feature");
assertThat(features).doesNotContain("feature");
}
Expand All @@ -78,7 +78,7 @@ public void testHostFeaturesIncompatibleDisabled() throws Exception {
useConfiguration("--features=feature", "--host_features=host_feature");
scratch.file("a/BUILD", "cc_library(name = 'a')");
ImmutableSet<String> features =
getRuleContext(getConfiguredTarget("//a", getExecConfiguration())).getFeatures();
getRuleContext(getConfiguredTarget("//a", getTargetConfiguration())).getFeatures();
assertThat(features).contains("feature");
assertThat(features).doesNotContain("host_feature");
}
Expand Down

0 comments on commit f4c7351

Please sign in to comment.