From 5e4be9c8c2998dc87830293bf4f45ebe96e67348 Mon Sep 17 00:00:00 2001 From: Bruno Michel <bmichel@menfin.info> Date: Mon, 19 Dec 2022 13:49:32 +0100 Subject: [PATCH] Fix integration tests Sometimes, an integration test could fail because it was trying to create a folder while another folder had the same name (409). --- tests/integration/tests/sharing_sync.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/tests/sharing_sync.rb b/tests/integration/tests/sharing_sync.rb index 6fb2a5343..6bdef8392 100644 --- a/tests/integration/tests/sharing_sync.rb +++ b/tests/integration/tests/sharing_sync.rb @@ -90,7 +90,7 @@ describe "A folder" do # Check the sync (create + update) sharer -> recipient child1.rename inst, Faker::Internet.slug - child2 = Folder.create inst, dir_id: folder.couch_id + child2 = Folder.create inst, dir_id: folder.couch_id, name: Faker::Internet.unique.slug child1.move_to inst, child2.couch_id opts = CozyFile.metadata_options_for(inst, label: Faker::Simpsons.quote) opts[:mime] = 'text/plain' -- GitLab