Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit c9c81eb

Browse files
Ulysses Souzachris-crone
authored andcommitted
Make e2e test arguments uniform
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 9678c4b commit c9c81eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

e2e/main_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)