summaryrefslogtreecommitdiffstats
path: root/qtest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'qtest.lua')
-rwxr-xr-xqtest.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/qtest.lua b/qtest.lua
index bc3dfe2..6bf446e 100755
--- a/qtest.lua
+++ b/qtest.lua
@@ -56,7 +56,12 @@ end
local utils = require 'lem.utils'
local postgres = require 'lem.postgres.queued'
-local db = assert(postgres.connect("host=localhost dbname=mydb"))
+local db = assert(postgres.connect([[
+host=localhost
+user=myuser
+password=mypasswd
+dbname=mydb
+]]))
assert(db:exec(
'CREATE TABLE mytable (id integer PRIMARY KEY, name CHARACTER VARYING)'))
@@ -106,7 +111,7 @@ do
end
utils.spawn(function()
- utils.sleeper():sleep(1.0)
+ utils.newsleeper():sleep(1.0)
assert(db:exec('DROP TABLE mytable'))
end)