Skip to content

Commit cdb51c3

Browse files
committed
transfer service
Signed-off-by: ChengyuZhu6 <hudson@cyzhu.com>
1 parent f380cca commit cdb51c3

File tree

12 files changed

+958
-340
lines changed

12 files changed

+958
-340
lines changed

cmd/nerdctl/container/container_run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ func TestRunFromOCIArchive(t *testing.T) {
786786
tarPath := fmt.Sprintf("%s/%s.tar", buildCtx, imageName)
787787

788788
base.Cmd("build", "--tag", tag, fmt.Sprintf("--output=type=oci,dest=%s", tarPath), buildCtx).AssertOK()
789-
base.Cmd("run", "--rm", fmt.Sprintf("oci-archive://%s", tarPath)).AssertOutContainsAll(fmt.Sprintf("Loaded image: %s", tag), sentinel)
789+
base.Cmd("run", "--rm", fmt.Sprintf("oci-archive://%s", tarPath)).AssertOutContainsAll(tag, sentinel)
790790
}
791791

792792
func TestRunDomainname(t *testing.T) {

cmd/nerdctl/image/image_load_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package image
1818

1919
import (
20-
"fmt"
2120
"os"
2221
"path/filepath"
2322
"strings"
@@ -61,7 +60,7 @@ func TestLoadStdinFromPipe(t *testing.T) {
6160
identifier := data.Identifier()
6261
return &test.Expected{
6362
Output: expect.All(
64-
expect.Contains(fmt.Sprintf("Loaded image: %s:latest", identifier)),
63+
expect.Contains(identifier),
6564
func(stdout string, t tig.T) {
6665
assert.Assert(t, strings.Contains(helpers.Capture("images"), identifier))
6766
},
@@ -107,7 +106,7 @@ func TestLoadQuiet(t *testing.T) {
107106
Expected: func(data test.Data, helpers test.Helpers) *test.Expected {
108107
return &test.Expected{
109108
Output: expect.All(
110-
expect.Contains(fmt.Sprintf("Loaded image: %s:latest", data.Identifier())),
109+
expect.Contains(data.Identifier()),
111110
expect.DoesNotContain("Loading layer"),
112111
),
113112
}

0 commit comments

Comments
 (0)