Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion src/Deferred.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Deferred<T> {

this._timeout = setTimeout(() => {
callback();
this.reject(new TimeoutError('Operation timeout'));
this.reject(new TimeoutError('Operation timeout: pool acquire'));
Comment thread
Gianluca-Casagrande-Stiga marked this conversation as resolved.
Outdated
}, timeoutInMillis);
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration/pool-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tap.test('pool expands only to max limit', (t) => {
.then((obj) => {
return pool.acquire().catch((e) => {
t.ok(e instanceof TimeoutError);
t.ok(e.message === 'Operation timeout');
t.ok(e.message === 'Operation timeout: pool acquire');
pool.release(obj);
t.end();
});
Expand Down