Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Oct 14, 2023
1 parent be76f7e commit 5e68e14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test1.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ import typesense
let
rootkey = getEnv("TYPESENSE_KEY").strip()
address = "0.0.0.0"
# rootkey = "bV9ZXnOpBFc1CPivLCvZ74OuutTniiei44lyziQqrFgACsZy"
# address = "10.242.195.202" # 0.0.0.0

echo rootkey

template newTypesenseClient() {.dirty.} =
var ts = newClient(address, Port(8108), rootkey)

test "can init":
newTypesenseClient()
assert waitFor(ts.health())
ts.close()

test "/keys POST":
# Create a new key
Expand Down

0 comments on commit 5e68e14

Please sign in to comment.