From 79c66aa87f13e5588bd338f6d1b8773198f7810d Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Thu, 22 Aug 2024 09:51:33 +0200 Subject: [PATCH] fix tests --- packages/cli/src/res/PgTyped.res | 2 +- packages/example/src/rescript.test.res | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/res/PgTyped.res b/packages/cli/src/res/PgTyped.res index 71e3484f..5a1016b0 100644 --- a/packages/cli/src/res/PgTyped.res +++ b/packages/cli/src/res/PgTyped.res @@ -24,7 +24,7 @@ module Pg = { /** default process.env.PGUSER || process.env.USER*/ user?: string, /**default process.env.PGPASSWORD*/ password?: string, /** default process.env.PGHOST*/ host?: string, - /** default process.env.PGPORT*/ port?: float, + /** default process.env.PGPORT*/ port?: int, /** default process.env.PGDATABASE || user*/ database?: string, /** e.g. postgres://user:password@host:5432/database*/ connectionString?: string, /** passed directly to node.TLSSocket, supports all tls.connect options*/ ssl?: unknown, diff --git a/packages/example/src/rescript.test.res b/packages/example/src/rescript.test.res index 6d55a218..22f5237e 100644 --- a/packages/example/src/rescript.test.res +++ b/packages/example/src/rescript.test.res @@ -60,7 +60,7 @@ let client = ref(None) let getClient = () => client.contents->Option.getExn beforeAll(async () => { - let dbClient = Pg.Client.make(dbConfig) + let dbClient = Pg.Client.make(Config(dbConfig)) client := Some(dbClient) await dbClient->Pg.Client.connect })