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';
24
24
import * as CLIENT_NO_EVICT from '../commands/CLIENT_NO-EVICT' ;
25
25
import * as CLIENT_PAUSE from '../commands/CLIENT_PAUSE' ;
26
26
import * as CLIENT_SETNAME from '../commands/CLIENT_SETNAME' ;
27
+ import * as CLIENT_UNPAUSE from '../commands/CLIENT_UNPAUSE' ;
27
28
import * as CLIENT_INFO from '../commands/CLIENT_INFO' ;
28
29
import * as CLUSTER_ADDSLOTS from '../commands/CLUSTER_ADDSLOTS' ;
29
30
import * as CLUSTER_ADDSLOTSRANGE from '../commands/CLUSTER_ADDSLOTSRANGE' ;
@@ -164,6 +165,8 @@ export default {
164
165
clientPause : CLIENT_PAUSE ,
165
166
CLIENT_SETNAME ,
166
167
clientSetName : CLIENT_SETNAME ,
168
+ CLIENT_UNPAUSE ,
169
+ clientUnpause : CLIENT_UNPAUSE ,
167
170
CLIENT_INFO ,
168
171
clientInfo : CLIENT_INFO ,
169
172
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