Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5959f23

Browse files
add uuid model tests
1 parent ecb582c commit 5959f23

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎Tests/FluentPostgresDriverTests/FluentPostgresDriverTests.swift‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Logging
12
import FluentBenchmark
23
import FluentPostgresDriver
34
import 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+
}()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /