Ensure that a SQL command timeout results in an error

This commit is contained in:
Scott Nonnenberg 2018-08-06 11:12:37 -07:00
parent 4b3ddef955
commit a01db40e27

View file

@ -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
);
});
};