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
1
2
import FluentBenchmark
2
3
import FluentPostgresDriver
3
4
import XCTest
@@ -107,11 +108,16 @@ final class FluentPostgresDriverTests: XCTestCase {
107
108
try self . benchmarker. testSort ( )
108
109
}
109
110
111
+ func testUUIDModel( ) throws {
112
+ try self . benchmarker. testUUIDModel ( )
113
+ }
114
+
110
115
var benchmarker : FluentBenchmarker !
111
116
var connectionPool : ConnectionPool < PostgresConnectionSource > !
112
117
var eventLoopGroup : EventLoopGroup !
113
118
114
119
override func setUp( ) {
120
+ XCTAssert ( isLoggingConfigured)
115
121
let eventLoopGroup = MultiThreadedEventLoopGroup ( numberOfThreads: 1 )
116
122
let eventLoop = eventLoopGroup. next ( )
117
123
let hostname : String
@@ -140,3 +146,12 @@ final class FluentPostgresDriverTests: XCTestCase {
140
146
try ! self . eventLoopGroup. syncShutdownGracefully ( )
141
147
}
142
148
}
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