@@ -66,9 +66,7 @@ describe("EthereumOptionsConfig", () => {
6666          } ) ; 
6767          try  { 
6868            assert ( typeof  options . logging . file  ===  "number" ) ; 
69-             assert . doesNotThrow ( ( )  => 
70-               closeSync ( options . logging . file  as  number ) 
71-             ) ; 
69+             assert . doesNotThrow ( ( )  =>  closeSync ( options . logging . file ) ) ; 
7270          }  finally  { 
7371            await  unlink ( validFilePath ) ; 
7472          } 
@@ -80,9 +78,7 @@ describe("EthereumOptionsConfig", () => {
8078          } ) ; 
8179          try  { 
8280            assert ( typeof  options . logging . file  ===  "number" ) ; 
83-             assert . doesNotThrow ( ( )  => 
84-               closeSync ( options . logging . file  as  number ) 
85-             ) ; 
81+             assert . doesNotThrow ( ( )  =>  closeSync ( options . logging . file ) ) ; 
8682          }  finally  { 
8783            await  unlink ( validFilePath ) ; 
8884          } 
@@ -94,27 +90,7 @@ describe("EthereumOptionsConfig", () => {
9490          } ) ; 
9591          try  { 
9692            assert ( typeof  options . logging . file  ===  "number" ) ; 
97-             assert . doesNotThrow ( ( )  => 
98-               closeSync ( options . logging . file  as  number ) 
99-             ) ; 
100-           }  finally  { 
101-             await  unlink ( validFilePath ) ; 
102-           } 
103-         } ) ; 
104- 
105-         it ( "uses an existing descriptor if passed in" ,  async  ( )  =>  { 
106-           const  fd  =  openSync ( validFilePath ,  "a" ) ; 
107- 
108-           const  options  =  EthereumOptionsConfig . normalize ( { 
109-             logging : {  file : fd  } 
110-           } ) ; 
111- 
112-           try  { 
113-             assert . strictEqual ( options . logging . file ,  fd ) ; 
114-             assert ( typeof  options . logging . file  ===  "number" ) ; 
115-             assert . doesNotThrow ( ( )  => 
116-               closeSync ( options . logging . file  as  number ) 
117-             ) ; 
93+             assert . doesNotThrow ( ( )  =>  closeSync ( options . logging . file ) ) ; 
11894          }  finally  { 
11995            await  unlink ( validFilePath ) ; 
12096          } 
@@ -140,13 +116,12 @@ describe("EthereumOptionsConfig", () => {
140116              calls . push ( [ message ,  ...params ] ) ; 
141117            } 
142118          } ; 
143-           const  descriptor  =  openSync ( validFilePath ,  "a" ) ; 
144119
145120          try  { 
146121            const  options  =  EthereumOptionsConfig . normalize ( { 
147122              logging : { 
148123                logger, 
149-                 file : descriptor 
124+                 file : validFilePath 
150125              } 
151126            } ) ; 
152127
0 commit comments