We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c47b44b commit 198d465Copy full SHA for 198d465
test/collections_test_helper.rb
@@ -61,7 +61,7 @@ def shard_collections(all_collections)
61
shard = ENV["COLLECTION_SHARD"]&.to_i
62
total_shards = ENV["COLLECTION_TOTAL_SHARDS"]&.to_i
63
64
- return all_collections unless shard && total_shards && total_shards > 1
+ return all_collections unless !shard.nil? && !total_shards.nil? && total_shards > 1
65
66
# Sort alphabetically for deterministic sharding
67
sorted = all_collections.sort
0 commit comments