integration/client: Rework withBytesBuffers
All of the tests using this didn't need stdin/err (one of them not even stdout), so we can just leave them "empty" and change to a withStdout naming to make it more obvious. Signed-off-by: Danny Canter <danny@dcantah.dev>
This commit is contained in:
@@ -897,8 +897,7 @@ func TestContainerKillAll(t *testing.T) {
|
||||
}
|
||||
defer container.Delete(ctx, WithSnapshotCleanup)
|
||||
|
||||
stdout := bytes.NewBuffer(nil)
|
||||
task, err := container.NewTask(ctx, cio.NewCreator(withByteBuffers(stdout)))
|
||||
task, err := container.NewTask(ctx, cio.NullIO)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user