Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,6 @@ private TestProvider initializeTestProvider(FilesToRunProvider filesToRunProvide
&& ruleContext.getRule().isAttributeValueExplicitlySpecified("shard_count")) {
ruleContext.attributeError("shard_count", "Must not be negative.");
}
if (explicitShardCount > 50) {
ruleContext.attributeError("shard_count",
"Having more than 50 shards is indicative of poor test organization. "
+ "Please reduce the number of shards.");
}
TestActionBuilder testActionBuilder =
new TestActionBuilder(ruleContext)
.setInstrumentedFiles(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,16 +536,6 @@ public void testNegativeShardCount() throws Exception {
"foo_test(name='bar', srcs=['mockingbird.sh'], shard_count=-1)");
}

@Test
public void testExcessiveShardCount() throws Exception {
checkError(
"foo",
"bar",
"indicative of poor test organization",
"load('//test_defs:foo_test.bzl', 'foo_test')",
"foo_test(name='bar', srcs=['mockingbird.sh'], shard_count=51)");
}

@Test
public void testNonexistingTargetErrorMsg() throws Exception {
checkError("foo", "foo", getErrorNonExistingTarget(
Expand Down
Loading