Skip to content

Commit e5bc41b

Browse files
committed
Try just reverting the new test
1 parent b33198f commit e5bc41b

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

swift-nio-revert.patch

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -20,62 +20,6 @@ Date: Thu Aug 28 13:08:45 2025 +0100
2020

2121
- Fewer deadlocks
2222

23-
diff --git a/Sources/NIOPosix/SelectableEventLoop.swift b/Sources/NIOPosix/SelectableEventLoop.swift
24-
index 6ca89bd3..e696d505 100644
25-
--- a/Sources/NIOPosix/SelectableEventLoop.swift
26-
+++ b/Sources/NIOPosix/SelectableEventLoop.swift
27-
@@ -1060,28 +1060,31 @@ extension SelectableEventLoop: CustomStringConvertible, CustomDebugStringConvert
28-
29-
@usableFromInline
30-
var debugDescription: String {
31-
- self._tasksLock.withLock {
32-
- if self.inEventLoop {
33-
- return """
34-
- SelectableEventLoop { \
35-
- selector = \(self._selector), \
36-
- scheduledTasks = \(self._scheduledTasks.description), \
37-
- thread = \(self.thread), \
38-
- state = \(self.internalState) \
39-
- }
40-
- """
41-
- } else {
42-
- return self.externalStateLock.withLock {
43-
- """
44-
- SelectableEventLoop { \
45-
- selector = \(self._selector), \
46-
- scheduledTasks = \(self._scheduledTasks.description), \
47-
- thread = \(self.thread), \
48-
- state = \(self.externalState) \
49-
- }
50-
- """
51-
+ let scheduledTasks = self._tasksLock.withLock {
52-
+ self._scheduledTasks.description
53-
+ }
54-
+
55-
+ if self.inEventLoop {
56-
+ return """
57-
+ SelectableEventLoop { \
58-
+ selector = \(self._selector), \
59-
+ scheduledTasks = \(scheduledTasks), \
60-
+ thread = \(self.thread), \
61-
+ state = \(self.internalState) \
62-
}
63-
+ """
64-
+ } else {
65-
+ let externalState = self.externalStateLock.withLock {
66-
+ self.externalState
67-
}
68-
+ return """
69-
+ SelectableEventLoop { \
70-
+ selector = \(self._selector), \
71-
+ scheduledTasks = \(scheduledTasks), \
72-
+ thread = \(self.thread), \
73-
+ state = \(externalState) \
74-
+ }
75-
+ """
76-
}
77-
}
78-
}
7923
diff --git a/Tests/NIOPosixTests/EventLoopTest.swift b/Tests/NIOPosixTests/EventLoopTest.swift
8024
index 65bbc653..93a5a700 100644
8125
--- a/Tests/NIOPosixTests/EventLoopTest.swift

0 commit comments

Comments
 (0)