File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ const tcp = net.Server(common.mustCall((s) => {
75
75
s . on ( 'data' , ( d ) => {
76
76
tcpLengthSeen += d . length ;
77
77
for ( let j = 0 ; j < d . length ; j ++ ) {
78
- assert . strictEqual ( buffer [ i ] , d [ j ] ) ;
78
+ assert . strictEqual ( d [ j ] , buffer [ i ] ) ;
79
79
i ++ ;
80
80
}
81
81
} ) ;
@@ -103,7 +103,7 @@ function startClient() {
103
103
} , common . mustCall ( ( res ) => {
104
104
res . setEncoding ( 'utf8' ) ;
105
105
res . on ( 'data' , common . mustCall ( ( string ) => {
106
- assert . strictEqual ( 'thanks' , string ) ;
106
+ assert . strictEqual ( string , 'thanks' ) ;
107
107
gotThanks = true ;
108
108
} ) ) ;
109
109
} ) ) ;
@@ -113,5 +113,5 @@ function startClient() {
113
113
114
114
process . on ( 'exit' , ( ) => {
115
115
assert . ok ( gotThanks ) ;
116
- assert . strictEqual ( bufferSize , tcpLengthSeen ) ;
116
+ assert . strictEqual ( tcpLengthSeen , bufferSize ) ;
117
117
} ) ;
You can’t perform that action at this time.
0 commit comments