From 9dc40a26114b2b6b74633d72bffdf8cff5a1258b Mon Sep 17 00:00:00 2001 From: Tyler Britten <1933680+tybritten@users.noreply.github.com> Date: Mon, 8 Aug 2022 09:46:11 -0400 Subject: [PATCH] update tests --- indexers/contacts_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indexers/contacts_test.go b/indexers/contacts_test.go index a6b34db..63bc18f 100644 --- a/indexers/contacts_test.go +++ b/indexers/contacts_test.go @@ -191,7 +191,7 @@ func TestContacts(t *testing.T) { expectedIndexName := fmt.Sprintf("indexer_test_%s", time.Now().Format("2006_01_02")) - indexName, err := ix1.Index(db, false, false) + indexName, err := ix1.Index(db, false, false, 2, 1) assert.NoError(t, err) assert.Equal(t, expectedIndexName, indexName) @@ -217,7 +217,7 @@ func TestContacts(t *testing.T) { require.NoError(t, err) // and index again... - indexName, err = ix1.Index(db, false, false) + indexName, err = ix1.Index(db, false, false, 2, 1) assert.NoError(t, err) assert.Equal(t, expectedIndexName, indexName) // same index used assertIndexerStats(t, ix1, 10, 1) @@ -264,7 +264,7 @@ func TestContacts(t *testing.T) { assertIndexesWithPrefix(t, es, aliasName, []string{expectedIndexName + "_2"}) // check that the original indexer now indexes against the new index - indexName, err = ix1.Index(db, false, false) + indexName, err = ix1.Index(db, false, false, 2, 1) assert.NoError(t, err) assert.Equal(t, expectedIndexName+"_2", indexName) }