Skip to content

Commit 7440d59

Browse files
committed
Work in progress: Fixed some compiler errors.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
1 parent 3e46249 commit 7440d59

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

Tests/NextcloudFileProviderKitTests/RemoteChangeObserverEtagOptimizationTests.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,31 +125,31 @@ final class RemoteChangeObserverEtagOptimizationTests: NextcloudFileProviderKitT
125125
print("\n=== Running multiple working set checks ===")
126126

127127
// First working set check
128-
var workingSetCheckCompleted = expectation(description: "First working set check completed.")
128+
let firstWorkingSetCheckCompleted = expectation(description: "First working set check completed.")
129129

130-
remoteChangeObserver.startWorkingSetCheck {
131-
workingSetCheckCompleted.fulfill()
130+
await remoteChangeObserver.startWorkingSetCheck {
131+
firstWorkingSetCheckCompleted.fulfill()
132132
}
133133

134-
await fulfillment(of: [workingSetCheckCompleted])
134+
await fulfillment(of: [firstWorkingSetCheckCompleted])
135135

136136
// Second working set check (simulating rapid notify_file messages)
137-
workingSetCheckCompleted = expectation(description: "Second working set check completed.")
137+
let secondWorkingSetCheckCompleted = expectation(description: "Second working set check completed.")
138138

139-
remoteChangeObserver.startWorkingSetCheck {
140-
workingSetCheckCompleted.fulfill()
139+
await remoteChangeObserver.startWorkingSetCheck {
140+
secondWorkingSetCheckCompleted.fulfill()
141141
}
142142

143-
await fulfillment(of: [workingSetCheckCompleted])
143+
await fulfillment(of: [secondWorkingSetCheckCompleted])
144144

145145
// Third working set check
146-
workingSetCheckCompleted = expectation(description: "Third working set check completed.")
146+
let thirdWorkingSetCheckCompleted = expectation(description: "Third working set check completed.")
147147

148-
remoteChangeObserver.startWorkingSetCheck {
149-
workingSetCheckCompleted.fulfill()
148+
await remoteChangeObserver.startWorkingSetCheck {
149+
thirdWorkingSetCheckCompleted.fulfill()
150150
}
151151

152-
await fulfillment(of: [workingSetCheckCompleted])
152+
await fulfillment(of: [thirdWorkingSetCheckCompleted])
153153

154154
// Wait for all operations to complete
155155

0 commit comments

Comments
 (0)