We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc83b63 + eae7878 commit 9efda33Copy full SHA for 9efda33
1 file changed
tests/utils/itutils.go
@@ -84,14 +84,15 @@ func GetGlobalConfig() *DeisTestConfig {
84
85
func doCurl(url string) ([]byte, error) {
86
response, err := http.Get(url)
87
+ defer response.Body.Close()
88
if err != nil {
89
return nil, err
90
}
91
92
body, err := ioutil.ReadAll(response.Body)
93
94
if !strings.Contains(string(body), "Powered by Deis") {
- return nil, fmt.Errorf("App not started")
95
+ return nil, fmt.Errorf("App not started (%d)", response.StatusCode)
96
97
98
return body, nil
@@ -117,7 +118,6 @@ func Curl(t *testing.T, params *DeisTestConfig) {
117
118
t.Fatal(err)
119
120
fmt.Println(string(body))
-
121
122
123
// AuthCancel tests whether `deis auth:cancel` destroys a user's account.
0 commit comments