From: Gordon Irving Date: Sat, 12 Dec 2009 16:38:07 +0000 (+0000) Subject: add sleep 1 to t/admin/02ddl.t so insert into upgrade table does not happen too quickly X-Git-Tag: v0.08119~9^2~46 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6daebebcb2de423295dc746b5ec9fc656e56f746;p=dbsrgits%2FDBIx-Class.git add sleep 1 to t/admin/02ddl.t so insert into upgrade table does not happen too quickly --- diff --git a/t/admin/02ddl.t b/t/admin/02ddl.t index 3a5bb9c..de1f067 100644 --- a/t/admin/02ddl.t +++ b/t/admin/02ddl.t @@ -93,6 +93,9 @@ $admin = DBIx::Class::Admin->new( $admin->preversion("1.0"); lives_ok { $admin->create($schema->storage->sqlt_type(), ); } 'Can create diff for ' . $schema->storage->sqlt_type; +# sleep required for upgrade table to hold a distinct time of upgrade value +# otherwise the returned of get_db_version can be undeterministic +sleep 1; lives_ok {$admin->upgrade();} 'upgrade the schema'; is($schema->get_db_version, $DBICVersion::Schema::VERSION, 'Schema and db versions match');