Skip to content

Commit 5a3b7b8

Browse files
committed
don't blow up if the specs exited too soon and the table is still around
1 parent bb9bc49 commit 5a3b7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mysql2/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def connect *args
410410
context 'write operations api' do
411411
before(:each) do
412412
@client.query "USE test"
413-
@client.query "CREATE TABLE lastIdTest (`id` int(11) NOT NULL AUTO_INCREMENT, blah INT(11), PRIMARY KEY (`id`))"
413+
@client.query "CREATE TABLE IF NOT EXISTS lastIdTest (`id` int(11) NOT NULL AUTO_INCREMENT, blah INT(11), PRIMARY KEY (`id`))"
414414
end
415415

416416
after(:each) do

0 commit comments

Comments
 (0)