Skip to content

Commit 3e6c1f5

Browse files
committed
Reset factory editor after emojis set tests
1 parent 8633d2a commit 3e6c1f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/CLTLoggerTests/CLTLoggerTests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import XCTest
88

99
final class CLTLoggerTests : XCTestCase {
1010

11+
static let defaultBootstrapFactory: @Sendable (String) -> any LogHandler = { _ in CLTLogger(multilineMode: .allMultiline) }
12+
1113
override class func setUp() {
12-
LoggingSystem.bootstrap{ _ in CLTLogger(multilineMode: .allMultiline) }
14+
LoggingSystem.bootstrap(Self.defaultBootstrapFactory)
1315
}
1416

1517
/* From <https://apple.github.io/swift-log/docs/current/Logging/Protocols/LogHandler.html#treat-log-level-amp-metadata-as-values>. */
@@ -105,6 +107,8 @@ final class CLTLoggerTests : XCTestCase {
105107
logger.debug( "debug: Example of text at this level.")
106108
logger.trace( "trace: Example of text at this level.")
107109
}
110+
/* Reset factory. */
111+
LoggingSystem.bootstrapInternal(Self.defaultBootstrapFactory)
108112
}
109113

110114
}

0 commit comments

Comments
 (0)