diff options
author | stephan <stephan@noemail.net> | 2024-07-11 19:50:17 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-07-11 19:50:17 +0000 |
commit | 8ee747dda55887775417e13882ffed29868a0865 (patch) | |
tree | d2e66d89a31caebabdee244604041ae686bfa581 /ext/wasm/tester1.c-pp.js | |
parent | 9958c51a5d9b151aab4b5e6c1dd18188e94e99b6 (diff) | |
download | sqlite-8ee747dda55887775417e13882ffed29868a0865.tar.gz sqlite-8ee747dda55887775417e13882ffed29868a0865.zip |
Reformulate the forceReinitIfFailed handling based on feedback, to correct the type-checking and resolve a potential race condition.
FossilOrigin-Name: c4f468309158f9b951137461213fb269d96d15c331256cf392a56c9bed231460
Diffstat (limited to 'ext/wasm/tester1.c-pp.js')
-rw-r--r-- | ext/wasm/tester1.c-pp.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/tester1.c-pp.js b/ext/wasm/tester1.c-pp.js index b1e05a24f..5d24daf15 100644 --- a/ext/wasm/tester1.c-pp.js +++ b/ext/wasm/tester1.c-pp.js @@ -3193,11 +3193,13 @@ globalThis.sqlite3InitModule = sqlite3InitModule; /* Ensure that the forceReinitIfFailed fallback bypasses the VFS init cache... */ cErr = u3 = undefined; conf2.forceReinitIfFailed = true; + conf2.verbosity = 3; const P3b = await inst(conf2).then(u=>u3 = u).catch((e)=>cErr=e); T.assert(undefined === cErr) .assert(P3b === u3) + .assert(P3b === await inst(conf2)) .assert(true === await u3.removeVfs()) - .assert(false === await u3.removeVfs()); + .assert(false === await P3b.removeVfs()); } }/*OPFS SAH Pool sanity checks*/) |