mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
refactor tests to reuse clusters more
This commit is contained in:
parent
88b093db7a
commit
ad88f4fac8
1 changed files with 2 additions and 12 deletions
|
|
@ -6857,23 +6857,13 @@ func TestVariousQueries(t *testing.T) {
|
|||
|
||||
variousQueries(t, c)
|
||||
variousQueriesOnTimeFields(t, c)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestVariousQueriesOnPercentiles(t *testing.T) {
|
||||
for _, clusterSize := range []int{1, 3, 4, 7} {
|
||||
t.Run(fmt.Sprintf("%d-node", clusterSize), func(t *testing.T) {
|
||||
variousQueriesOnPercentiles(t, clusterSize)
|
||||
variousQueriesOnPercentiles(t, c)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// tests for abbreviating time values in queries
|
||||
func variousQueriesOnPercentiles(t *testing.T, clusterSize int) {
|
||||
c := test.MustRunCluster(t, clusterSize)
|
||||
defer c.Close()
|
||||
|
||||
func variousQueriesOnPercentiles(t *testing.T, c *test.Cluster) {
|
||||
// todo, make rand more random, 42 isnt the answer to everything
|
||||
// however, to make tests reproducible, seed should be printed
|
||||
// on failure?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue