add sleep 1 to t/admin/02ddl.t so insert into upgrade table does not happen too quickly
Gordon Irving [Sat, 12 Dec 2009 16:38:07 +0000 (16:38 +0000)]
t/admin/02ddl.t

index 3a5bb9c..de1f067 100644 (file)
@@ -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');