File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import * as CLIENT_KILL from '../commands/CLIENT_KILL';
2424import * as CLIENT_NO_EVICT from '../commands/CLIENT_NO-EVICT' ;
2525import * as CLIENT_PAUSE from '../commands/CLIENT_PAUSE' ;
2626import * as CLIENT_SETNAME from '../commands/CLIENT_SETNAME' ;
27+ import * as CLIENT_UNPAUSE from '../commands/CLIENT_UNPAUSE' ;
2728import * as CLIENT_INFO from '../commands/CLIENT_INFO' ;
2829import * as CLUSTER_ADDSLOTS from '../commands/CLUSTER_ADDSLOTS' ;
2930import * as CLUSTER_ADDSLOTSRANGE from '../commands/CLUSTER_ADDSLOTSRANGE' ;
@@ -164,6 +165,8 @@ export default {
164165 clientPause : CLIENT_PAUSE ,
165166 CLIENT_SETNAME ,
166167 clientSetName : CLIENT_SETNAME ,
168+ CLIENT_UNPAUSE ,
169+ clientUnpause : CLIENT_UNPAUSE ,
167170 CLIENT_INFO ,
168171 clientInfo : CLIENT_INFO ,
169172 CLUSTER_ADDSLOTS ,
Original file line number Diff line number Diff line change 1+ import { strict as assert } from 'assert' ;
2+ import testUtils , { GLOBAL } from '../test-utils' ;
3+ import { transformArguments } from './CLIENT_UNPAUSE' ;
4+
5+ describe ( 'CLIENT UNPAUSE' , ( ) => {
6+ testUtils . isVersionGreaterThanHook ( [ 6 , 2 ] ) ;
7+
8+ it ( 'transformArguments' , ( ) => {
9+ assert . deepEqual (
10+ transformArguments ( ) ,
11+ [ 'CLIENT' , 'UNPAUSE' ]
12+ ) ;
13+ } ) ;
14+
15+ testUtils . testWithClient ( 'client.unpause' , async client => {
16+ assert . equal (
17+ await client . clientUnpause ( ) ,
18+ 'OK'
19+ ) ;
20+ } , GLOBAL . SERVERS . OPEN ) ;
21+ } ) ;
Original file line number Diff line number Diff line change 1+ import { RedisCommandArguments } from '.' ;
2+
3+ export function transformArguments ( ) : RedisCommandArguments {
4+ return [ 'CLIENT' , 'UNPAUSE' ] ;
5+ }
6+
7+ export declare function transformReply ( ) : 'OK' | Buffer ;
You can’t perform that action at this time.
0 commit comments