Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/authzed-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- package.json
- js-dist/package.json
test:
name: Lint
name: Lint and Test
runs-on: "buildjet-2vcpu-ubuntu-2204"
strategy:
matrix:
Expand All @@ -51,6 +51,9 @@ jobs:
- name: Run lint
run: CI=true yarn lint
working-directory: ./
- name: Run Yarn tests
run: CI=true yarn only-run-tests
working-directory: ./
publish-npm:
name: Publish to NPM
needs:
Expand Down
10 changes: 6 additions & 4 deletions src/v1-promise.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,10 @@ describe('Experimental Service', () => {
});

await client.writeSchema(request);

client.close();
});

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

const writeStream = client.bulkImportRelationships((err, value) => {
if (err) {
done.fail(err);
fail(err);
}

expect(value?.numLoaded).toEqual('2');
done();
});

writeStream.on('error', (e) => {
fail(e);
});

const resource = ObjectReference.create({
Expand Down
Loading