Fix tests
This commit is contained in:
parent
2d016c44bd
commit
b7e80c39f1
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ export class Locks<T> {
|
|||
*/
|
||||
public unlock(key: T): void {
|
||||
if (!this.locked.has(key)) {
|
||||
throw new Error(`Key ${key} is not locked, cannot unlock`);
|
||||
throw new Error(`Key '${key}' is not locked, cannot unlock`);
|
||||
}
|
||||
|
||||
// Remove first waiter to ensure FIFO order
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue