mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
test(codex): skip the thread version SQLite fixture on WSL temp dirs
The test added in dc93c4962 builds an on-disk SQLite fixture in a temp
dir. The WSL2 nightly points TEMP at a \\wsl.localhost 9P share, where
Windows cannot take SQLite locks, so creating the table failed with
"database is locked" on every retry. Guard it with
sqlite_unsupported_in_temp_dir() like the other SQLite fixture tests.
This commit is contained in:
1 parent
c261126630
commit
ef24a01912
1 file changed
+3
@@ -1185,6 +1185,9 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn thread_versions_come_from_the_most_recently_created_threads() {
|
||||
if crate::config::sqlite_unsupported_in_temp_dir() {
|
||||
return;
|
||||
}
|
||||
let dir = tempfile::TempDir::new().unwrap();
|
||||
let db = dir.path().join("state_5.sqlite");
|
||||
let conn = rusqlite::Connection::open(&db).unwrap();
|
||||
|
||||
Reference in new issue
Block a user