Skip to content

Commit 6041760

Browse files
committed
fix tests
Tool: gitpod/catfood.gitpod.cloud
1 parent d08d996 commit 6041760

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/ws-daemon/cmd/debug-run-initializer.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package cmd
66

77
import (
88
"context"
9+
"fmt"
910

1011
"github.com/gitpod-io/gitpod/common-go/log"
1112
"github.com/gitpod-io/gitpod/content-service/api"
@@ -22,7 +23,7 @@ var debugRunInitializer = &cobra.Command{
2223
RunE: func(cmd *cobra.Command, args []string) error {
2324
dst := args[0]
2425
log.WithField("dst", dst).Info("running content initializer")
25-
return content.RunInitializer(context.Background(), dst, &api.WorkspaceInitializer{
26+
_, err := content.RunInitializer(context.Background(), dst, &api.WorkspaceInitializer{
2627
Spec: &api.WorkspaceInitializer_Git{
2728
Git: &api.GitInitializer{
2829
RemoteUri: "https://github.com/gitpod-io/gitpod.git",
@@ -35,6 +36,9 @@ var debugRunInitializer = &cobra.Command{
3536
},
3637
},
3738
}, make(map[string]storage.DownloadInfo), content.RunInitializerOpts{})
39+
40+
fmt.Printf(content.FormatStatsBytes(stats))
41+
return err
3842
},
3943
}
4044

0 commit comments

Comments
 (0)