This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,37 +62,37 @@ func TestMain(m *testing.M) {
6262 }
6363 configDir , err := ioutil .TempDir ("" , "config" )
6464 if err != nil {
65- panic (err . Error () )
65+ panic (err )
6666 }
6767 defer os .RemoveAll (configDir )
6868
6969 err = os .Setenv ("DOCKER_CONFIG" , configDir )
7070 if err != nil {
71- panic (err . Error () )
71+ panic (err )
7272 }
7373 dockerCli = dockerCliCommand {path : dockerCliPath , config : configDir }
7474
7575 config := dockerConfigFile.ConfigFile {CLIPluginsExtraDirs : []string {configDir }}
7676 configFile , err := os .Create (filepath .Join (configDir , "config.json" ))
7777 if err != nil {
78- panic (err . Error () )
78+ panic (err )
7979 }
8080 err = json .NewEncoder (configFile ).Encode (config )
8181 if err != nil {
82- panic (err . Error () )
82+ panic (err )
8383 }
8484 dockerAppExecName := "docker-app"
8585 if runtime .GOOS == "windows" {
8686 dockerAppExecName += ".exe"
8787 }
8888 if err := os .Symlink (dockerApp , filepath .Join (configDir , dockerAppExecName )); err != nil {
89- panic (err . Error () )
89+ panic (err )
9090 }
9191
9292 cmd := exec .Command (dockerApp , "app" , "version" )
9393 output , err := cmd .CombinedOutput ()
9494 if err != nil {
95- panic (err . Error () )
95+ panic (err )
9696 }
9797 hasExperimental = bytes .Contains (output , []byte ("Experimental: on" ))
9898 i := strings .Index (string (output ), "Renderers" )
You can’t perform that action at this time.
0 commit comments