reduce simultaneous memory usage a bit

Delete indexes after we're done with them from subtests so that
we don't fill up on a huge number of unrelated indexes.
This commit is contained in:
Seebs 2022-08-31 16:21:14 -05:00 • committed by Kasey Rodgers
parent fb3e60f88a
commit 904b19dce1

View file

@ -1177,6 +1177,10 @@ func runCallTest(c *test.Cluster, t *testing.T, writeQuery string, readQueries [
responses[i] = res
}
err = c.GetNode(0).API.DeleteIndex(context.TODO(), indexName)
if err != nil {
t.Fatalf("cleaning up index: %v", err)
}
return responses
}