Skip to content

Commit 08d1611

Browse files
committed
test: make TestProcess stream more obvious
1 parent c73e190 commit 08d1611

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test/test_process.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,15 @@ class TestProcess {
6767

6868
switch (mode) {
6969
case 'readable':
70-
this.duplexFrom = this.childProcess.stdout;
70+
this.stream = this.childProcess.stdout;
7171
break;
7272
case 'writable':
73-
this.duplexFrom = this.childProcess.stdin;
73+
this.stream = this.childProcess.stdin;
7474
break;
7575
default:
7676
// Default is duplex
77-
this.duplexFrom = { writable: this.childProcess.stdin, readable: this.childProcess.stdout };
77+
this.stream = Duplex.from({ writable: this.childProcess.stdin, readable: this.childProcess.stdout });
7878
}
79-
80-
this.stream = Duplex.from(this.duplexFrom);
8179
}
8280
}
8381

0 commit comments

Comments
 (0)