Skip to content

Commit

Permalink
Fix second flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
virolea committed Sep 19, 2024
1 parent 016b39b commit 9a3e555
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/translations_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class TranslationsTest < ActionDispatch::IntegrationTest
test "visiting the page loads up the missing keys" do
assert_difference("Rosetta::TranslationKey.count", 18) do
get root_path(locale: "fr")
sleep 1 # TODO: Find better way to wait for keys to be created
end
end

Expand All @@ -23,7 +24,7 @@ class TranslationsTest < ActionDispatch::IntegrationTest

# Load up the keys
get root_path(locale: locale.code)
sleep 2 # TODO: Find better way to wait for keys to be created
sleep 1 # TODO: Find better way to wait for keys to be created
key = Rosetta::TranslationKey.find_by(value: "Available locales")

# Create the translation
Expand Down

0 comments on commit 9a3e555

Please sign in to comment.