Skip to content

Commit 1ffef8f

Browse files
committed
Ensure tests are idempotent
1 parent df4c7cd commit 1ffef8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/01_mysql_db_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class { 'mysql::server':
3737
class { 'mysql::server': override_options => { 'root_password' => 'password' } }
3838
file { '/tmp/spec.sql':
3939
ensure => file,
40-
content => 'CREATE TABLE table1 (id int);',
40+
content => 'CREATE TABLE [IF NOT EXISTS] table1 (id int);',
4141
before => Mysql::Db['spec2'],
4242
}
4343
mysql::db { 'spec2':

0 commit comments

Comments
 (0)