11//
2- // FeatherSQLDatabaseTests .swift
3- // FeatherSQLDatabaseTests
2+ // FeatherRelationalDatabaseDriverPostgresTests .swift
3+ // FeatherRelationalDatabaseDriverPostgresTests
44//
55// Created by Tibor Bodecs on 2023. 01. 16..
66//
77
88import NIO
99import XCTest
10- import FeatherService
10+ import FeatherComponent
1111import FeatherRelationalDatabase
1212import FeatherRelationalDatabaseDriverPostgres
1313import PostgresKit
@@ -32,7 +32,7 @@ final class FeatherRelationalDatabaseDriverPostgresTests: XCTestCase {
3232
3333 func testExample( ) async throws {
3434 do {
35- let registry = ServiceRegistry ( )
35+ let registry = ComponentRegistry ( )
3636
3737 let eventLoopGroup = MultiThreadedEventLoopGroup ( numberOfThreads: 1 )
3838 let threadPool = NIOThreadPool ( numberOfThreads: 1 )
@@ -51,15 +51,15 @@ final class FeatherRelationalDatabaseDriverPostgresTests: XCTestCase {
5151 )
5252
5353 try await registry. addRelationalDatabase (
54- PostgresRelationalDatabaseServiceContext (
54+ PostgresRelationalDatabaseComponentContext (
5555 eventLoopGroup: eventLoopGroup,
5656 connectionSource: connectionSource
5757 )
5858 )
5959
6060 try await registry. run ( )
61- let dbService = try await registry. relationalDatabase ( )
62- let db = try await dbService . connection ( )
61+ let dbComponent = try await registry. relationalDatabase ( )
62+ let db = try await dbComponent . connection ( )
6363
6464 do {
6565
0 commit comments