Use built-in API (#14095)

This commit is contained in:
woxtu 2024-07-02 14:47:07 +09:00 committed by GitHub
parent eafae79869
commit de1fe7cc5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 69 additions and 73 deletions

View file

@ -605,14 +605,6 @@ export async function initTestDb(justBorrow = false, initEntities?: any[]) {
return db;
}
export function sleep(msec: number) {
return new Promise<void>(res => {
setTimeout(() => {
res();
}, msec);
});
}
export async function sendEnvUpdateRequest(params: { key: string, value?: string }) {
const res = await fetch(
`http://localhost:${port + 1000}/env`,