Skip to content

Commit

Permalink
Remove a Swift parseable output test case which is obsolete (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
owenv authored Feb 3, 2025
1 parent a66fd17 commit 0bfb557
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Tests/SWBCoreTests/SwiftCompilerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -297,20 +297,6 @@ fileprivate final class TestSwiftParserDelegate: TaskOutputParserDelegate, Senda
XCTAssertMatch(delegate.events[safe: 1]?.1, .contains("missing pid"))
}

// Missing 'command' is an error.
do {
let (delegate, _) = try await makeTestParserWithMessages([
[ "kind": "began",
"name": "compile",
"pid": 1]])
#expect(delegate.events.count == 2)
#expect(delegate.events[safe: 0]?.0 == "error")
XCTAssertMatch(delegate.events[safe: 0]?.1, .contains("missing or invalid command"))
// Check we still start the subtask.
#expect(delegate.events[safe: 1]?.0 == "startSubtask")
// FIXME: We need to get a close subtask message here.
}

// Duplicate 'pid' is an error.
do {
let (delegate, _) = try await makeTestParserWithMessages([
Expand Down

0 comments on commit 0bfb557

Please sign in to comment.