We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc40a2 commit 15876acCopy full SHA for 15876ac
indexers/contacts_test.go
@@ -240,7 +240,7 @@ func TestContacts(t *testing.T) {
240
// and simulate another indexer doing a parallel rebuild
241
ix2 := indexers.NewContactIndexer(elasticURL, aliasName, 4)
242
243
- indexName2, err := ix2.Index(db, true, false)
+ indexName2, err := ix2.Index(db, true, false, 2, 1)
244
assert.NoError(t, err)
245
assert.Equal(t, expectedIndexName+"_1", indexName2) // new index used
246
assertIndexerStats(t, ix2, 8, 0)
@@ -255,7 +255,7 @@ func TestContacts(t *testing.T) {
255
256
// simulate another indexer doing a parallel rebuild with cleanup
257
ix3 := indexers.NewContactIndexer(elasticURL, aliasName, 4)
258
- indexName3, err := ix3.Index(db, true, true)
+ indexName3, err := ix3.Index(db, true, true, 2, 1)
259
260
assert.Equal(t, expectedIndexName+"_2", indexName3) // new index used
261
assertIndexerStats(t, ix3, 8, 0)
0 commit comments