@@ -41,7 +41,7 @@ net.createServer(common.mustCall(function(socket) {
4141 port : this . address ( ) . port ,
4242 onread : {
4343 buffer : sockBuf ,
44- callback : common . mustCall ( function ( nread , buf ) {
44+ callback : common . mustCallAtLeast ( function ( nread , buf ) {
4545 assert . strictEqual ( buf , sockBuf ) ;
4646 received += nread ;
4747 const newIncoming = new Uint8Array ( incoming . length + nread ) ;
@@ -74,7 +74,7 @@ net.createServer(common.mustCall(function(socket) {
7474 bufPoolIdx = ( bufPoolIdx + 1 ) % bufPool . length ;
7575 return bufPool [ bufPoolIdx ] ;
7676 } ,
77- callback : common . mustCall ( function ( nread , buf ) {
77+ callback : common . mustCallAtLeast ( function ( nread , buf ) {
7878 assert . strictEqual ( buf , bufPool [ bufPoolIdx ] ) ;
7979 received += nread ;
8080 incoming . push ( Buffer . from ( buf . slice ( 0 , nread ) ) ) ;
@@ -105,7 +105,7 @@ net.createServer(common.mustCall(function(socket) {
105105 bufPoolIdx = ( bufPoolIdx + 1 ) % bufPool . length ;
106106 return bufPool [ bufPoolIdx ] ;
107107 } ,
108- callback : common . mustCall ( function ( nread , buf ) {
108+ callback : common . mustCallAtLeast ( function ( nread , buf ) {
109109 assert . strictEqual ( buf , bufPool [ bufPoolIdx ] ) ;
110110 received += nread ;
111111 const newIncoming = new Uint8Array ( incoming . length + nread ) ;
@@ -134,7 +134,7 @@ net.createServer(common.mustCall(function(socket) {
134134 port : this . address ( ) . port ,
135135 onread : {
136136 buffer : sockBuf ,
137- callback : common . mustCall ( function ( nread , buf ) {
137+ callback : common . mustCallAtLeast ( function ( nread , buf ) {
138138 assert . strictEqual ( paused , false ) ;
139139 assert . strictEqual ( buf , sockBuf ) ;
140140 received += nread ;
@@ -166,7 +166,7 @@ net.createServer(common.mustCall(function(socket) {
166166 port : this . address ( ) . port ,
167167 onread : {
168168 buffer : sockBuf ,
169- callback : common . mustCall ( function ( nread , buf ) {
169+ callback : common . mustCallAtLeast ( function ( nread , buf ) {
170170 assert . strictEqual ( paused , false ) ;
171171 assert . strictEqual ( buf , sockBuf ) ;
172172 received += nread ;
0 commit comments