Commit 057907b
fix(file-provider): Fix flaky testEnumerate root date assertion
MockRemoteInterfaceTests.testEnumerate compared the enumerated root file's date against the item's creationDate, but toNKFile() maps modificationDate onto NKFile.date. MockRemoteItem defaults creationDate and modificationDate to two separate Date() calls that are only sometimes identical, so the assertion flaked on CI when the clock ticked between them. Compare against modificationDate, the field the value is actually derived from.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>1 parent c1909a3 commit 057907b
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
- shell_integration/MacOSX/NextcloudFileProviderKit/Tests/InterfaceTests
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
507 | 512 | | |
508 | 513 | | |
509 | 514 | | |
| |||
0 commit comments