Skip to content

Commit 18be08d

Browse files
committed
Fix test race condition
1 parent 5fc8765 commit 18be08d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/mongo/database_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,16 +340,13 @@
340340
Mongo::Grid::File.new('Hello!', :filename => 'test.txt')
341341
end
342342

343-
before do
344-
fs.insert_one(file)
345-
end
346-
347343
after do
348344
fs.files_collection.delete_many
349345
fs.chunks_collection.delete_many
350346
end
351347

352348
let(:from_db) do
349+
fs.insert_one(file)
353350
fs.find_one(:filename => 'test.txt')
354351
end
355352

0 commit comments

Comments
 (0)