File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,17 @@ assert.throws(() => {
6666} , { code : 'ERR_INVALID_ARG_TYPE' } ) ;
6767assert . strictEqual ( process . report . compact , true ) ;
6868
69+ // Verify that process.report.reportDisableNetwork behaves properly.
70+ assert . strictEqual ( process . report . disableNetwork , true ) ;
71+ process . report . disableNetwork = false ;
72+ assert . strictEqual ( process . report . disableNetwork , false ) ;
73+ process . report . disableNetwork = true ;
74+ assert . strictEqual ( process . report . disableNetwork , true ) ;
75+ assert . throws ( ( ) => {
76+ process . report . disableNetwork = { } ;
77+ } , { code : 'ERR_INVALID_ARG_TYPE' } ) ;
78+ assert . strictEqual ( process . report . disableNetwork , true ) ;
79+
6980if ( ! common . isWindows ) {
7081 // Verify that process.report.signal behaves properly.
7182 assert . strictEqual ( process . report . signal , 'SIGUSR2' ) ;
You can’t perform that action at this time.
0 commit comments