Skip to content

Commit

Permalink
fix: flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinCodes committed Apr 21, 2022
1 parent 90d8ea5 commit 579b18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/algolia/integration/account_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_account_client

search_client2 = Algolia::Search::Client.create(APPLICATION_ID_2, ADMIN_KEY_2)
index2 = search_client2.init_index(get_test_index_name('copy_index2'))
index1.save_object!({ objectID: 'one' })
index1.save_object!({ objectID: 'one', title: 'Test title' })
index1.save_rule!({
objectID: 'one',
condition: { anchoring: 'is', pattern: 'pattern' },
Expand All @@ -29,7 +29,7 @@ def test_account_client
}
})
index1.save_synonym!({ objectID: 'one', type: 'synonym', synonyms: %w(one two) })
index1.set_settings!({ searchableAttributes: ['objectID'] })
index1.set_settings!({ searchableAttributes: ['title'] })

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

0 comments on commit 579b18b

Please sign in to comment.