diff --git a/src/tests.c b/src/tests.c index d7abae16..eaa96d57 100644 --- a/src/tests.c +++ b/src/tests.c @@ -233,10 +233,9 @@ static void _test_database(const tf_test_options_t* options) "}\n"); fclose(file); - unlink("out/testdb.sqlite"); - char command[256]; - snprintf(command, sizeof(command), "%s run --ssb-port=0 --db-path=file:db?mode=memory\\&cache=shared -s out/test.js", options->exe_path); + unlink("out/test_db0.sqlite"); + snprintf(command, sizeof(command), "%s run --ssb-port=0 --db-path=out/test_db0.sqlite -s out/test.js", options->exe_path); tf_printf("%s\n", command); int result = system(command); tf_printf("returned %d\n", WEXITSTATUS(result)); @@ -244,7 +243,7 @@ static void _test_database(const tf_test_options_t* options) assert(WEXITSTATUS(result) == 0); unlink("out/test.js"); - unlink("out/testdb.sqlite"); + unlink("out/test_db0.sqlite"); } static void _test_this(const tf_test_options_t* options)