File tree 1 file changed +3
-5
lines changed
Tests/SwiftDocCUtilitiesTests
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -285,8 +285,6 @@ class PreviewActionIntegrationTests: XCTestCase {
285
285
let workspace = DocumentationWorkspace ( )
286
286
_ = try ! DocumentationContext ( dataProvider: workspace)
287
287
288
- let engine = DiagnosticEngine ( )
289
-
290
288
let convertActionTempDirectory = try createTemporaryDirectory ( )
291
289
let createConvertAction = {
292
290
try ConvertAction (
@@ -298,8 +296,7 @@ class PreviewActionIntegrationTests: XCTestCase {
298
296
emitDigest: false ,
299
297
currentPlatforms: nil ,
300
298
fileManager: FileManager . default,
301
- temporaryDirectory: convertActionTempDirectory,
302
- diagnosticEngine: engine)
299
+ temporaryDirectory: convertActionTempDirectory)
303
300
}
304
301
305
302
guard let preview = try ? PreviewAction (
@@ -308,9 +305,10 @@ class PreviewActionIntegrationTests: XCTestCase {
308
305
XCTFail ( " Could not create preview action from parameters " , file: file, line: line)
309
306
return
310
307
}
311
-
312
308
// Start watching the source and get the initial (successful) state.
313
309
do {
310
+ let engine = preview. convertAction. diagnosticEngine
311
+
314
312
// Wait for watch to produce output.
315
313
let logOutputExpectation = expectation ( description: " Did produce log output " )
316
314
let logChecker = OutputChecker ( fileURL: pipeURL, expectation: logOutputExpectation) { output in
You can’t perform that action at this time.
0 commit comments