@@ -373,13 +373,6 @@ class PluginInvocationTests: XCTestCase {
373
373
XCTAssert ( result. compilerOutput. contains ( " warning: variable 'unused' was never used " ) , " \( result. compilerOutput) " )
374
374
XCTAssert ( result. diagnosticsFile. suffix == " .dia " , " \( result. diagnosticsFile. pathString) " )
375
375
376
- // Check the serialized diagnostics. We should no longer have an error but now have a warning.
377
- let diaFileContents = try localFileSystem. readFileContents ( result. diagnosticsFile)
378
- let diagnosticsSet = try SerializedDiagnostics ( bytes: diaFileContents)
379
- XCTAssertEqual ( diagnosticsSet. diagnostics. count, 1 )
380
- let warningDiagnostic = try XCTUnwrap ( diagnosticsSet. diagnostics. first)
381
- XCTAssertTrue ( warningDiagnostic. text. hasPrefix ( " variable \' unused \' was never used " ) , " \( warningDiagnostic) " )
382
-
383
376
// Check that the executable file exists.
384
377
XCTAssertTrue ( localFileSystem. exists ( result. executableFile) , " \( result. executableFile. pathString) " )
385
378
@@ -408,13 +401,6 @@ class PluginInvocationTests: XCTestCase {
408
401
XCTAssert ( result. compilerOutput. contains ( " warning: variable 'unused' was never used " ) , " \( result. compilerOutput) " )
409
402
XCTAssert ( result. diagnosticsFile. suffix == " .dia " , " \( result. diagnosticsFile. pathString) " )
410
403
411
- // Check that the diagnostics still have the same warning as before.
412
- let diaFileContents = try localFileSystem. readFileContents ( result. diagnosticsFile)
413
- let diagnosticsSet = try SerializedDiagnostics ( bytes: diaFileContents)
414
- XCTAssertEqual ( diagnosticsSet. diagnostics. count, 1 )
415
- let warningDiagnostic = try XCTUnwrap ( diagnosticsSet. diagnostics. first)
416
- XCTAssertTrue ( warningDiagnostic. text. hasPrefix ( " variable \' unused \' was never used " ) , " \( warningDiagnostic) " )
417
-
418
404
// Check that the executable file exists.
419
405
XCTAssertTrue ( localFileSystem. exists ( result. executableFile) , " \( result. executableFile. pathString) " )
420
406
0 commit comments