Skip to content

Commit bff48dd

Browse files
committed
Fix assertion failure in unit tests
1 parent 7a4a8e5 commit bff48dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/NIORedisTests/NIORedisTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ final class NIORedisTests: XCTestCase {
66
let redis = NIORedis(executionModel: .spawnThreads(1))
77
defer { try? redis.terminate() }
88

9-
XCTAssertNoThrow(try redis.makeConnection().wait())
9+
XCTAssertNoThrow(try redis.makeConnection().wait().close())
1010
}
1111

1212
func test_command() throws {
@@ -18,6 +18,7 @@ final class NIORedisTests: XCTestCase {
1818
XCTAssertNotNil(result.int)
1919
XCTAssertEqual(result.int, 1)
2020
try connection.command("DEL", [.bulkString("key".convertedToData())]).wait()
21+
connection.close()
2122
}
2223

2324
static var allTests = [

0 commit comments

Comments
 (0)