@@ -43,7 +43,7 @@ final class DiskCacheTests {
43
43
let clock = ManualClock ( )
44
44
let cache = DiskCache < String > ( options: cacheOptions ( ) , clock: clock, logger: . init( . default) )
45
45
46
- await cache. store ( Data ( ) , for: " empty " )
46
+ cache. store ( Data ( ) , for: " empty " )
47
47
48
48
try await yield ( until: await cache. isFlushScheduled)
49
49
@@ -81,8 +81,8 @@ final class DiskCacheTests {
81
81
let clock = ManualClock ( )
82
82
let cache = DiskCache < String > ( options: cacheOptions ( ) , clock: clock, logger: . init( . default) )
83
83
84
- await cache. store ( Data ( [ 1 ] ) , for: " item0 " )
85
- await cache. store ( Data ( [ 1 , 2 ] ) , for: " item1 " )
84
+ cache. store ( Data ( [ 1 ] ) , for: " item0 " )
85
+ cache. store ( Data ( [ 1 , 2 ] ) , for: " item1 " )
86
86
87
87
try await yield ( until: await cache. isFlushScheduled)
88
88
@@ -104,9 +104,9 @@ final class DiskCacheTests {
104
104
let clock = ManualClock ( )
105
105
let cache = DiskCache < String > ( options: cacheOptions ( ) , clock: clock, logger: . init( . default) )
106
106
107
- await cache. store ( Data ( [ 1 ] ) , for: " item0 " )
108
- await cache. store ( Data ( [ 1 , 2 ] ) , for: " item1 " )
109
- await cache. remove ( for: " item0 " )
107
+ cache. store ( Data ( [ 1 ] ) , for: " item0 " )
108
+ cache. store ( Data ( [ 1 , 2 ] ) , for: " item1 " )
109
+ cache. remove ( for: " item0 " )
110
110
111
111
try await yield ( until: await cache. isFlushScheduled)
112
112
@@ -138,7 +138,7 @@ final class DiskCacheTests {
138
138
let clock = ManualClock ( )
139
139
let cache = DiskCache < String > ( options: cacheOptions ( ) , clock: clock, logger: . init( . default) )
140
140
141
- await cache. store ( Data ( [ 1 ] ) , for: " item0 " )
141
+ cache. store ( Data ( [ 1 ] ) , for: " item0 " )
142
142
try await yield ( until: await cache. isFlushScheduled)
143
143
144
144
clock. advance ( by: . milliseconds( 1000 ) )
@@ -153,7 +153,7 @@ final class DiskCacheTests {
153
153
#expect( isEmpty)
154
154
}
155
155
156
- await cache. removeAll ( )
156
+ cache. removeAll ( )
157
157
try await yield ( until: await cache. isFlushScheduled)
158
158
159
159
clock. advance ( by: . milliseconds( 1000 ) )
@@ -181,9 +181,9 @@ final class DiskCacheTests {
181
181
let clock = ManualClock ( )
182
182
let cache = DiskCache < String > ( options: options, clock: clock)
183
183
184
- await cache. store ( Data ( [ 1 ] ) , for: " item0 " )
185
- await cache. store ( Data ( [ 1 , 2 ] ) , for: " item1 " )
186
- await cache. store ( Data ( [ 1 , 2 , 3 ] ) , for: " item2 " )
184
+ cache. store ( Data ( [ 1 ] ) , for: " item0 " )
185
+ cache. store ( Data ( [ 1 , 2 ] ) , for: " item1 " )
186
+ cache. store ( Data ( [ 1 , 2 , 3 ] ) , for: " item2 " )
187
187
188
188
try await yield ( until: await cache. isFlushScheduled)
189
189
0 commit comments