fix: resolve CI test failures on Linux and Windows

- Fix TestMigrateCommand: Use correct sqlite3 driver name and file URI format
- Fix TestDaemonAutoImportAfterGitPull: Add Windows-specific delay for filesystem timestamp precision
- Fix TestSyncBranchPull_Success: Add Windows-specific delay for file I/O settling

Amp-Thread-ID: https://ampcode.com/threads/T-5abd1f2f-9607-4111-af9d-19df64362ac7
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-11-04 10:02:08 -08:00
parent de1fb5ff85
commit 859fbd4976
3 changed files with 27 additions and 3 deletions

View File

@@ -563,6 +563,11 @@ func TestSyncBranchPull_Success(t *testing.T) {
t.Error("JSONL not copied to main repo after pull")
}
// On Windows, file I/O may need time to settle
if runtime.GOOS == "windows" {
time.Sleep(100 * time.Millisecond)
}
// Verify JSONL content matches
clone1Data, err := os.ReadFile(clone1JSONLPath)
if err != nil {