Skip to content

Commit

Permalink
Merge 3127aa6 into 2e05fac
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed May 10, 2019
2 parents 2e05fac + 3127aa6 commit 451e152
Show file tree
Hide file tree
Showing 3 changed files with 1,013 additions and 965 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_js:
- '9'
- '10'
- '11'
- 'node'

services:
- mongodb
Expand Down
6 changes: 4 additions & 2 deletions tests/RequestContext.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ describe('RequestContext', () => {
expect(em['unitOfWork'].getIdentityMap()).not.toBe(orm.em['unitOfWork'].getIdentityMap());
});
expect(RequestContext.currentRequestContext()).not.toBeNull();
await new Promise(resolve => setTimeout(resolve, 100)); // wait for GC
expect(RequestContext.currentRequestContext()).toBeNull();

// on node 12, destroy hook is called after the test is done
// await new Promise(resolve => setTimeout(resolve, 100)); // wait for GC
// expect(RequestContext.currentRequestContext()).toBeNull();
});

test('request context does not break population', async () => {
Expand Down

0 comments on commit 451e152

Please sign in to comment.