Skip to content

Commit 579b18b

Browse files
committed
fix: flaky tests
1 parent 90d8ea5 commit 579b18b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/algolia/integration/account_client_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_account_client
1414

1515
search_client2 = Algolia::Search::Client.create(APPLICATION_ID_2, ADMIN_KEY_2)
1616
index2 = search_client2.init_index(get_test_index_name('copy_index2'))
17-
index1.save_object!({ objectID: 'one' })
17+
index1.save_object!({ objectID: 'one', title: 'Test title' })
1818
index1.save_rule!({
1919
objectID: 'one',
2020
condition: { anchoring: 'is', pattern: 'pattern' },
@@ -29,7 +29,7 @@ def test_account_client
2929
}
3030
})
3131
index1.save_synonym!({ objectID: 'one', type: 'synonym', synonyms: %w(one two) })
32-
index1.set_settings!({ searchableAttributes: ['objectID'] })
32+
index1.set_settings!({ searchableAttributes: ['title'] })
3333

3434
Algolia::Account::Client.copy_index!(index1, index2)
3535
assert_equal 'one', index2.get_object('one')[:objectID]

0 commit comments

Comments
 (0)