File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Tests/FluentPostgresDriverTests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ import Logging
12import FluentBenchmark
23import FluentPostgresDriver
34import XCTest
@@ -107,11 +108,16 @@ final class FluentPostgresDriverTests: XCTestCase {
107108 try self . benchmarker. testSort ( )
108109 }
109110
111+ func testUUIDModel( ) throws {
112+ try self . benchmarker. testUUIDModel ( )
113+ }
114+
110115 var benchmarker : FluentBenchmarker !
111116 var connectionPool : ConnectionPool < PostgresConnectionSource > !
112117 var eventLoopGroup : EventLoopGroup !
113118
114119 override func setUp( ) {
120+ XCTAssert ( isLoggingConfigured)
115121 let eventLoopGroup = MultiThreadedEventLoopGroup ( numberOfThreads: 1 )
116122 let eventLoop = eventLoopGroup. next ( )
117123 let hostname : String
@@ -140,3 +146,12 @@ final class FluentPostgresDriverTests: XCTestCase {
140146 try ! self . eventLoopGroup. syncShutdownGracefully ( )
141147 }
142148}
149+
150+ let isLoggingConfigured : Bool = {
151+ LoggingSystem . bootstrap { label in
152+ var handler = StreamLogHandler . standardOutput ( label: label)
153+ handler. logLevel = . debug
154+ return handler
155+ }
156+ return true
157+ } ( )
You can’t perform that action at this time.
0 commit comments