Skip to content

Commit fef95e8

Browse files
committed
=test unlock dumping tests after a lockd up test detected
1 parent d872d20 commit fef95e8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Sources/DistributedActorsTestKit/Cluster/ClusteredActorSystemsXCTestCase.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ open class ClusteredActorSystemsXCTestCase: XCTestCase {
9696
self.actorStatsBefore = try InspectKit.actorStats()
9797
}
9898

99-
// self.stuckTestDumpLogsTask = Task.detached {
100-
// try await Task.sleep(until: .now + self.dumpLogsAfter, clock: .continuous)
101-
// guard !Task.isCancelled else {
102-
// return
103-
// }
104-
//
105-
// print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
106-
// print("!!!!!!!!!! TEST SEEMS STUCK - DUMPING LOGS !!!!!!!!!!")
107-
// print("!!!!!!!!!! PID: \(ProcessInfo.processInfo.processIdentifier) !!!!!!!!!!")
108-
// print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
109-
// self.printAllCapturedLogs()
110-
// }
99+
self.stuckTestDumpLogsTask = Task.detached {
100+
try await Task.sleep(until: .now + self.dumpLogsAfter, clock: .continuous)
101+
guard !Task.isCancelled else {
102+
return
103+
}
104+
105+
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
106+
print("!!!!!!!!!! TEST SEEMS STUCK - DUMPING LOGS !!!!!!!!!!")
107+
print("!!!!!!!!!! PID: \(ProcessInfo.processInfo.processIdentifier) !!!!!!!!!!")
108+
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
109+
self.printAllCapturedLogs()
110+
}
111111
try await super.setUp()
112112
}
113113

0 commit comments

Comments
 (0)