Skip to content

Commit

Permalink
minor improve ut
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Nov 26, 2024
1 parent 072d67c commit 6858781
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/oras/root/cp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func Test_doCopy(t *testing.T) {
opts.From.Reference = memDesc.Digest.String()
dst := memory.New()
builder := &strings.Builder{}
printer := output.NewPrinter(builder, os.Stderr, false)
printer := output.NewPrinter(builder, os.Stderr, opts.SuppressUntitled)
handler := status.NewTextCopyHandler(printer, dst)
// test
_, err = doCopy(context.Background(), handler, memStore, dst, &opts)
Expand All @@ -157,7 +157,7 @@ func Test_doCopy_skipped(t *testing.T) {
opts.TTY = slave
opts.From.Reference = memDesc.Digest.String()
builder := &strings.Builder{}
printer := output.NewPrinter(builder, os.Stderr, false)
printer := output.NewPrinter(builder, os.Stderr, opts.SuppressUntitled)
handler := status.NewTextCopyHandler(printer, memStore)

// test
Expand Down Expand Up @@ -193,7 +193,7 @@ func Test_doCopy_mounted(t *testing.T) {
}
to.PlainHTTP = true
builder := &strings.Builder{}
printer := output.NewPrinter(builder, os.Stderr, false)
printer := output.NewPrinter(builder, os.Stderr, opts.SuppressUntitled)
handler := status.NewTextCopyHandler(printer, to)

// test
Expand Down

0 comments on commit 6858781

Please sign in to comment.