@@ -56,19 +56,19 @@ final class RedisCommandHandlerTests: XCTestCase {
56
56
57
57
let getFoo = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " foo " ) ) ] )
58
58
let promiseFoo = loop. makePromise ( of: RESPValue . self)
59
- let commandFoo = ( message: getFoo, responsePromise: promiseFoo)
59
+ let commandFoo = RedisCommand ( message: getFoo, responsePromise: promiseFoo)
60
60
XCTAssertNoThrow ( try channel. writeOutbound ( commandFoo) )
61
61
XCTAssertEqual ( try channel. readOutbound ( as: RESPValue . self) , getFoo)
62
62
63
63
let getBar = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " bar " ) ) ] )
64
64
let promiseBar = loop. makePromise ( of: RESPValue . self)
65
- let commandBar = ( message: getBar, responsePromise: promiseBar)
65
+ let commandBar = RedisCommand ( message: getBar, responsePromise: promiseBar)
66
66
XCTAssertNoThrow ( try channel. writeOutbound ( commandBar) )
67
67
XCTAssertEqual ( try channel. readOutbound ( as: RESPValue . self) , getBar)
68
68
69
69
let getBaz = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " baz " ) ) ] )
70
70
let promiseBaz = loop. makePromise ( of: RESPValue . self)
71
- let commandBaz = ( message: getBaz, responsePromise: promiseBaz)
71
+ let commandBaz = RedisCommand ( message: getBaz, responsePromise: promiseBaz)
72
72
XCTAssertNoThrow ( try channel. writeOutbound ( commandBaz) )
73
73
XCTAssertEqual ( try channel. readOutbound ( as: RESPValue . self) , getBaz)
74
74
@@ -117,7 +117,7 @@ final class RedisCommandHandlerTests: XCTestCase {
117
117
118
118
let getBar = RESPValue . array ( [ . bulkString( . init( string: " GET " ) ) , . bulkString( . init( string: " bar " ) ) ] )
119
119
let promiseBar = loop. makePromise ( of: RESPValue . self)
120
- let commandBar = ( message: getBar, responsePromise: promiseBar)
120
+ let commandBar = RedisCommand ( message: getBar, responsePromise: promiseBar)
121
121
channel. write ( commandBar, promise: nil )
122
122
XCTAssertThrowsError ( try promiseBar. futureResult. wait ( ) ) {
123
123
XCTAssertEqual ( $0 as? RedisClientError , . connectionClosed)
0 commit comments