Ensure that a SQL command timeout results in an error
This commit is contained in:
@@ -178,8 +178,8 @@ function makeChannel(fnName) {
|
||||
});
|
||||
|
||||
setTimeout(
|
||||
() => resolve(new Error(`Request to ${fnName} timed out`)),
|
||||
5000
|
||||
() => reject(new Error(`Request to ${fnName} timed out`)),
|
||||
10000
|
||||
);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user