ci: Fix CI not testing with Postgres 16 and flaky test (#9210)
This commit is contained in:
@@ -26,3 +26,19 @@ export function destroyAllDataPermanently(fast) {
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
export function resolvingPromise() {
|
||||
let res;
|
||||
let rej;
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
res = resolve;
|
||||
rej = reject;
|
||||
});
|
||||
promise.resolve = res;
|
||||
promise.reject = rej;
|
||||
return promise;
|
||||
}
|
||||
|
||||
export function sleep(ms) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user