X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-init.lisp;h=9af59da503b6845fbcaee73612eaf5d07998abd1;hb=5148be446aee32ec705beac3fbba35f499df4fd4;hp=d78e64ae978c4cdbf8359e83c2b43a46b32028b1;hpb=2f185bf0167aa5a0be8e82a0c1ee961ca28f1426;p=clsql.git diff --git a/tests/test-init.lisp b/tests/test-init.lisp index d78e64a..9af59da 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -574,12 +574,13 @@ (values (nreverse test-forms) (nreverse skip-tests)))) -(defun rapid-load (type) +(defun rapid-load (type &optional (position 0)) "Rapid load for interactive testing." (when *default-database* (disconnect :database *default-database*)) - (test-connect-to-database type (car (db-type-spec type (read-specs)))) - (test-initialise-database)) + (test-connect-to-database type (nth position (db-type-spec type (read-specs)))) + (test-initialise-database) + *default-database*) (defun rl () (rapid-load :postgresql))