ci: Fix CI not testing with Postgres 16 and flaky test (#9210)
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
// Create Deferred Promise
|
||||
function resolvingPromise() {
|
||||
let res;
|
||||
let rej;
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
res = resolve;
|
||||
rej = reject;
|
||||
});
|
||||
promise.resolve = res;
|
||||
promise.reject = rej;
|
||||
return promise;
|
||||
}
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
module.exports = { resolvingPromise, sleep };
|
||||
Reference in New Issue
Block a user