Skip to content

Commit

Permalink
add subtest for empty shard
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwanthgoli committed Mar 15, 2024
1 parent 1ea784e commit 2643fb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/logql/downstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,11 @@ func TestParseShardCount(t *testing.T) {
shards []string
expected int
}{
{
name: "empty shards",
shards: []string{},
expected: 0,
},
{
name: "single shard",
shards: []string{"0_of_3"},
Expand Down

0 comments on commit 2643fb4

Please sign in to comment.