Skip to content

Commit d08fa12

Browse files
committed
Fix test (connect now returns a connection info object)
1 parent ffc4b4a commit d08fa12

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
cat <<- EOF
9595
import { Client } from '$1';
9696
const client = new Client();
97-
const secured = await client.connect();
98-
console.log(secured);
97+
const info = await client.connect();
98+
console.log("Encrypted: " + info.encrypted);
9999
await client.end();
100100
EOF
101101
}
@@ -105,16 +105,18 @@ jobs:
105105
npm run test:prod || exit 1
106106
npm run build
107107
gen_code ./dist/src/index.js > test.mjs
108-
node test.mjs | tee /dev/stderr | grep -q true
108+
node test.mjs | tee /dev/stderr | grep true
109109
;;
110110
bun)
111111
# Workaround: https://github.com/oven-sh/bun/issues/1590
112112
dependencies=`jq -r '.dependencies|to_entries|map("\(.key)@\(.value)")|join(" ")' package.json`
113113
( set -x; mkdir /tmp/bun && cd "$_" && ls -lah && bun install "$dependencies" && rm -rf `pwd`; )
114+
set -x
114115
bun install -p --ignore-scripts
115116
bun build src/index.ts --target bun > ts-postgres.js
116117
gen_code ./ts-postgres.js > test.mjs
117-
bun test.mjs | tee /dev/stderr | grep -q true
118+
bun test.mjs
119+
bun test.mjs | tee /dev/stderr | grep true
118120
;;
119121
esac
120122
env:

0 commit comments

Comments
 (0)