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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user