Skip to content

Commit 948a4ab

Browse files
committed
fix(rdb): add stdout/stderr buffers to cleanup bootstrap
1 parent 2bc0a6b commit 948a4ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/namespaces/rdb/v1/custom_benchmark_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,14 @@ func cleanupSharedInstance() {
236236
}
237237

238238
executeCmd := func(args []string) any {
239+
stdoutBuffer := &bytes.Buffer{}
240+
stderrBuffer := &bytes.Buffer{}
239241
_, result, _ := core.Bootstrap(&core.BootstrapConfig{
240242
Args: args,
241243
Commands: rdb.GetCommands().Copy(),
242244
BuildInfo: &core.BuildInfo{},
245+
Stdout: stdoutBuffer,
246+
Stderr: stderrBuffer,
243247
Client: client,
244248
DisableTelemetry: true,
245249
DisableAliases: true,

0 commit comments

Comments
 (0)