Skip to content

Commit

Permalink
get password from env
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxk committed Jan 10, 2020
1 parent 99e9c05 commit 6d36180
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/connection.nim
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import unittest, os, db_postgres, sequtils, strformat

# let params = commandLineParams()
# let password = if params.len == 0: "test" else: "test"
# echo params
# echo password

let password = getEnv("password")
echo "the ps is:" & password
echo password.len
if password.len == 0:
echo "Please set env of database password "
quit(1)

suite "Test Postgis":
echo "connect to pg"
Expand Down

0 comments on commit 6d36180

Please sign in to comment.