File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1056,7 +1056,7 @@ test('retry idempotent inflight', async (t) => {
1056
1056
} )
1057
1057
1058
1058
test ( 'invalid opts' , async ( t ) => {
1059
- const p = tspl ( t , { plan : 2 } )
1059
+ const p = tspl ( t , { plan : 5 } )
1060
1060
1061
1061
const client = new Client ( 'http://localhost:5000' )
1062
1062
client . request ( null , ( err ) => {
@@ -1065,6 +1065,22 @@ test('invalid opts', async (t) => {
1065
1065
client . pipeline ( null ) . on ( 'error' , ( err ) => {
1066
1066
p . ok ( err instanceof errors . InvalidArgumentError )
1067
1067
} )
1068
+ client . request ( {
1069
+ path : '/' ,
1070
+ method : 'GET' ,
1071
+ highWaterMark : '1000'
1072
+ } , ( err ) => {
1073
+ p . ok ( err instanceof errors . InvalidArgumentError )
1074
+ p . strictEqual ( err . message , 'invalid highWaterMark' )
1075
+ } )
1076
+ client . request ( {
1077
+ path : '/' ,
1078
+ method : 'GET' ,
1079
+ highWaterMark : - 1
1080
+ } , ( err ) => {
1081
+ p . ok ( err instanceof errors . InvalidArgumentError )
1082
+ p . strictEqual ( err . message , 'invalid highWaterMark' )
1083
+ } )
1068
1084
1069
1085
await p . completed
1070
1086
} )
You can’t perform that action at this time.
0 commit comments