Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tests/CompositorTests/ExternalChangeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ struct ExternalChangeTests {
let active = try #require(session.document?.layers.first?.id)
session.renameLayer(active, to: "Unsaved here")
try await renameFirstLayerOnDisk(url, to: "Renamed elsewhere")
await settle()
// No window to ask in, so the question waits and the document keeps the unsaved edit.
// No window to ask in, so the question waits and the document keeps the unsaved edit. Waits for the
// watcher rather than a fixed delay: on a busy machine its event can take longer than one.
#expect(await eventually { controller.externalChanges.pending })
#expect(controller.externalChanges.reloadCount == 0)
#expect(controller.externalChanges.pending)
#expect(session.document?.layers.first?.name == "Unsaved here")
#expect(session.isModified)
}
Expand Down
Loading