X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=tests%2Ftest-init.lisp;h=9af59da503b6845fbcaee73612eaf5d07998abd1;hp=543ab871f6bfefebd69093f8cadeb4478cfeb3df;hb=7308bdf188da6424e615ca14096ef53cfb845a90;hpb=606f6b3eb642523512d12927ff83120b688e8bf9 diff --git a/tests/test-init.lisp b/tests/test-init.lisp index 543ab87..9af59da 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -574,11 +574,11 @@ (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-connect-to-database type (nth position (db-type-spec type (read-specs)))) (test-initialise-database) *default-database*)