That was dumb

This commit is contained in:
Max Goedjen 2020-03-23 23:10:26 -07:00
parent 99c05fe6e6
commit 11a5413a8c
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
3 changed files with 3 additions and 10 deletions

View File

@ -22,13 +22,6 @@
},
{
"parallelizable" : true,
"skippedTests" : [
"AgentTests\/testRequestTracing()",
"AgentTests\/testSignature()",
"AgentTests\/testSignatureException()",
"AgentTests\/testWitnessObjectionStopsRequest()",
"AgentTests\/testWitnessSignature()"
],
"target" : {
"containerPath" : "container:Secretive.xcodeproj",
"identifier" : "5099A073240242BA0062B6F2",

View File

@ -99,7 +99,7 @@ class AgentTests: XCTestCase {
let agent = Agent(storeList: list, witness: witness)
agent.handle(reader: stubReader, writer: stubWriter)
XCTAssertEqual(witnessTrace, speakNowTrace)
XCTAssertEqual(witnessTrace.origin.name, "Xcode")
XCTAssertEqual(witnessTrace.origin.name, "SecretAgent")
XCTAssertEqual(witnessTrace.origin.validSignature, true)
XCTAssertEqual(witnessTrace.origin.parentPID, 1)
}

View File

@ -5,10 +5,10 @@ struct StubFileHandleReader: FileHandleReader {
let availableData: Data
var fileDescriptor: Int32 {
NSWorkspace.shared.runningApplications.filter({ $0.localizedName == "Xcode" }).first!.processIdentifier
NSWorkspace.shared.runningApplications.filter({ $0.localizedName == "SecretAgent" }).first!.processIdentifier
}
var pidOfConnectedProcess: Int32 {
NSWorkspace.shared.runningApplications.filter({ $0.localizedName == "Xcode" }).first!.processIdentifier
fileDescriptor
}
}