projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Speed up sqlite-based tests (disable synchronous disk writes)
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
t
/
backcompat
/
0.04006
/
lib
/
dbixcsl_common_tests.pm
diff --git
a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm
b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm
index
a67eb61
..
6edbe61
100644
(file)
--- a/
t/backcompat/0.04006/lib/dbixcsl_common_tests.pm
+++ b/
t/backcompat/0.04006/lib/dbixcsl_common_tests.pm
@@
-579,6
+579,9
@@
sub dbconnect {
AutoCommit => 1,
}
);
+ if ($self->{dsn} =~ /^[^:]+:SQLite:/) {
+ $dbh->do ('PRAGMA synchronous = OFF');
+ }
die "Failed to connect to database: $DBI::errstr" if !$dbh;