mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
That was dumb
This commit is contained in:
parent
99c05fe6e6
commit
11a5413a8c
@ -22,13 +22,6 @@
|
||||
},
|
||||
{
|
||||
"parallelizable" : true,
|
||||
"skippedTests" : [
|
||||
"AgentTests\/testRequestTracing()",
|
||||
"AgentTests\/testSignature()",
|
||||
"AgentTests\/testSignatureException()",
|
||||
"AgentTests\/testWitnessObjectionStopsRequest()",
|
||||
"AgentTests\/testWitnessSignature()"
|
||||
],
|
||||
"target" : {
|
||||
"containerPath" : "container:Secretive.xcodeproj",
|
||||
"identifier" : "5099A073240242BA0062B6F2",
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user