@@ -148,14 +148,10 @@ protected static void WriteFileIfNotExist(string fileLocation, string contents)
148148
149149 protected static void ExecuteBinary ( EphemeralClusterConfiguration config , IConsoleLineHandler writer ,
150150 string binary , string description , params string [ ] arguments ) =>
151- ExecuteBinaryInternal ( config , writer , binary , description , null , arguments ) ;
152-
153- protected static void ExecuteBinary ( EphemeralClusterConfiguration config , IConsoleLineHandler writer ,
154- string binary , string description , StartedHandler startedHandler , params string [ ] arguments ) =>
155- ExecuteBinaryInternal ( config , writer , binary , description , startedHandler , arguments ) ;
151+ ExecuteBinaryInternal ( config , writer , binary , description , arguments ) ;
156152
157153 private static void ExecuteBinaryInternal ( EphemeralClusterConfiguration config , IConsoleLineHandler writer ,
158- string binary , string description , StartedHandler startedHandler , params string [ ] arguments )
154+ string binary , string description , params string [ ] arguments )
159155 {
160156 var command = $ "{{{binary}}} {{{string.Join(" ", arguments)}}}" ;
161157 writer ? . WriteDiagnostic ( $ "{{{nameof(ExecuteBinary)}}} starting process [{ description } ] { command } ") ;
@@ -167,12 +163,12 @@ private static void ExecuteBinaryInternal(EphemeralClusterConfiguration config,
167163 {
168164 { config . FileSystem . ConfigEnvironmentVariableName , config . FileSystem . ConfigPath } ,
169165 { "ES_HOME" , config . FileSystem . ElasticsearchHome }
170- }
166+ } ,
167+ Timeout = timeout ,
168+ ConsoleOutWriter = new ConsoleOutColorWriter ( ) ,
171169 } ;
172170
173- var result = startedHandler != null
174- ? Proc . Start ( processStartArguments , timeout , new ConsoleOutColorWriter ( ) , startedHandler )
175- : Proc . Start ( processStartArguments , timeout , new ConsoleOutColorWriter ( ) ) ;
171+ var result = Proc . Start ( processStartArguments ) ;
176172
177173 if ( ! result . Completed )
178174 throw new Exception ( $ "Timeout while executing { description } exceeded { timeout } ") ;
0 commit comments