Use shardwidth instead of hardcoded value

This commit is contained in:
Cody Soyland 2020-12-23 17:54:31 -06:00 • committed by Matt Jaffee
parent f099a90264
commit fd7417a49b
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -5517,7 +5517,7 @@ func TestExecutor_Execute_GroupBy(t *testing.T) {
t.Fatal(err)
} else if _, err := c.GetNode(0).API.Query(context.Background(), &pilosa.QueryRequest{Index: "i", Query: `Set(1, v=100)`}); err != nil {
t.Fatal(err)
} else if _, err := c.GetNode(0).API.Query(context.Background(), &pilosa.QueryRequest{Index: "i", Query: `Set(1500000, v=100)`}); err != nil {
} else if _, err := c.GetNode(0).API.Query(context.Background(), &pilosa.QueryRequest{Index: "i", Query: fmt.Sprintf(`Set(%d, v=100)`, ShardWidth+10)}); err != nil { // Workaround distinct bug where v must be set in every shard
t.Fatal(err)
}