Skip to content

Commit 371fb3a

Browse files
authored
Merge pull request #119 from authzed/re-enable-tests
re-enable tests
2 parents 0a80943 + a4d3d93 commit 371fb3a

3 files changed

Lines changed: 184 additions & 183 deletions

File tree

.github/workflows/authzed-node.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- package.json
2929
- js-dist/package.json
3030
test:
31-
name: Lint
31+
name: Lint and Test
3232
runs-on: "buildjet-2vcpu-ubuntu-2204"
3333
strategy:
3434
matrix:
@@ -51,6 +51,9 @@ jobs:
5151
- name: Run lint
5252
run: CI=true yarn lint
5353
working-directory: ./
54+
- name: Run Yarn tests
55+
run: CI=true yarn only-run-tests
56+
working-directory: ./
5457
publish-npm:
5558
name: Publish to NPM
5659
needs:

src/v1-promise.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,11 +476,10 @@ describe('Experimental Service', () => {
476476
});
477477

478478
await client.writeSchema(request);
479-
480479
client.close();
481480
});
482481

483-
it('can bulk import relationships', async (done) => {
482+
it('can bulk import relationships', () => {
484483
const { promises: client } = NewClient(
485484
token,
486485
'localhost:50051',
@@ -489,11 +488,14 @@ describe('Experimental Service', () => {
489488

490489
const writeStream = client.bulkImportRelationships((err, value) => {
491490
if (err) {
492-
done.fail(err);
491+
fail(err);
493492
}
494493

495494
expect(value?.numLoaded).toEqual('2');
496-
done();
495+
});
496+
497+
writeStream.on('error', (e) => {
498+
fail(e);
497499
});
498500

499501
const resource = ObjectReference.create({

0 commit comments

Comments
 (0)