Skip to content

Commit

Permalink
added comment regarding failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Renzen committed Dec 28, 2023
1 parent 9f91849 commit e88f6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/tests/Generator.class.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ describe('Generator Class', () => {
const pipelineBatch = new Pipeline(batchConfiguration, {silent: true})
pipelineBatch.validate()
const stage = pipelineBatch.stages.get('Stage 1')

async function runGeneratorWithPromise(): Promise<boolean> {
return new Promise((resolve, reject) => {
pipelineBatch.run().then(() => {

}).catch(error => {reject(error)});
stage?.generator.addListener('data', (quad) => {
stage?.generator.addListener('data', (quad: any) => {
N3Store.addQuad(quad)
});
stage?.generator.addListener('end', (_numResults) => {
Expand All @@ -98,6 +97,7 @@ describe('Generator Class', () => {
});
}
await runGeneratorWithPromise()
// @mightymax should be 459, returns 420 quads in store when using a local file instead of remote endpoint
expect(N3Store.size).to.equal(459)
expect(N3Store.getQuads(null,null,null,null)[458].subject.id).to.equal('https://triplydb.com/triply/iris/id/floweringPlant/00150')

Expand Down

0 comments on commit e88f6f4

Please sign in to comment.