@@ -56,19 +56,19 @@ final class RedisCommandHandlerTests: XCTestCase {
5656
5757 let getFoo = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " foo " ) ) ] )
5858 let promiseFoo = loop. makePromise ( of: RESPValue . self)
59- let commandFoo = ( message: getFoo, responsePromise: promiseFoo)
59+ let commandFoo = RedisCommand ( message: getFoo, responsePromise: promiseFoo)
6060 XCTAssertNoThrow ( try channel. writeOutbound ( commandFoo) )
6161 XCTAssertEqual ( try channel. readOutbound ( as: RESPValue . self) , getFoo)
6262
6363 let getBar = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " bar " ) ) ] )
6464 let promiseBar = loop. makePromise ( of: RESPValue . self)
65- let commandBar = ( message: getBar, responsePromise: promiseBar)
65+ let commandBar = RedisCommand ( message: getBar, responsePromise: promiseBar)
6666 XCTAssertNoThrow ( try channel. writeOutbound ( commandBar) )
6767 XCTAssertEqual ( try channel. readOutbound ( as: RESPValue . self) , getBar)
6868
6969 let getBaz = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " baz " ) ) ] )
7070 let promiseBaz = loop. makePromise ( of: RESPValue . self)
71- let commandBaz = ( message: getBaz, responsePromise: promiseBaz)
71+ let commandBaz = RedisCommand ( message: getBaz, responsePromise: promiseBaz)
7272 XCTAssertNoThrow ( try channel. writeOutbound ( commandBaz) )
7373 XCTAssertEqual ( try channel. readOutbound ( as: RESPValue . self) , getBaz)
7474
@@ -117,7 +117,7 @@ final class RedisCommandHandlerTests: XCTestCase {
117117
118118 let getBar = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " bar " ) ) ] )
119119 let promiseBar = loop. makePromise ( of: RESPValue . self)
120- let commandBar = ( message: getBar, responsePromise: promiseBar)
120+ let commandBar = RedisCommand ( message: getBar, responsePromise: promiseBar)
121121 channel. write ( commandBar, promise: nil )
122122 XCTAssertThrowsError ( try promiseBar. futureResult. wait ( ) ) {
123123 XCTAssertEqual ( $0 as? RedisClientError , . connectionClosed)
0 commit comments