()
| 538 | |
| 539 | describe('release()', () => { |
| 540 | const makeOldSession = () => { |
| 541 | const oldSession = new ServerSession(); |
| 542 | oldSession.lastUse = processTimeMS() - 30 * 60 * 1000; // add 30min |
| 543 | return oldSession; |
| 544 | }; |
| 545 | |
| 546 | it('should remove old sessions if they are at the start of the pool', () => { |
| 547 | const pool = new ServerSessionPool(client); |
no test coverage detected