From 3ee044c1a5e7cc3fda75bafe0e2ff4c6bbdd43de Mon Sep 17 00:00:00 2001 From: Aaron Suggs Date: Sun, 4 Mar 2012 12:18:17 -0500 Subject: [PATCH] [aws|storage|test] use a random directory key; prevent collision --- tests/aws/models/storage/file_tests.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/aws/models/storage/file_tests.rb b/tests/aws/models/storage/file_tests.rb index 07006468d..2e0ab7e08 100644 --- a/tests/aws/models/storage/file_tests.rb +++ b/tests/aws/models/storage/file_tests.rb @@ -7,7 +7,8 @@ Shindo.tests("Storage[:aws] | file", [:aws]) do } directory_attributes = { - :key => 'fogfilestests' + # Add a random suffix to prevent collision + :key => "fogfilestests-#{rand(65536)}" } @directory = Fog::Storage[:aws].directories.create(directory_attributes)