mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|storage|test] use a random directory key; prevent collision
This commit is contained in:
parent
303500b433
commit
3ee044c1a5
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue