Skip to content

Commit

Permalink
Changed Mackerel api client tests' disable_keep_alive
Browse files Browse the repository at this point in the history
  • Loading branch information
appare45 committed Dec 20, 2024
1 parent fb780e6 commit 7022f7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion command/command_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestAPIRequestHeader(t *testing.T) {
}))
defer ts.Close()

api, err := NewMackerelClient(ts.URL, apiKey, ver, rev, false, true)
api, err := NewMackerelClient(ts.URL, apiKey, ver, rev, false, false)
if err != nil {
t.Errorf("something went wrong while creating new mackerel client: %+v", err)
}
Expand Down
12 changes: 6 additions & 6 deletions command/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func TestLoop(t *testing.T) {
},
}

api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, true)
api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, false)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -442,7 +442,7 @@ func TestLoop_NetworkError(t *testing.T) {
},
}

api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, true)
api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, false)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -524,7 +524,7 @@ func TestLoop_NetworkErrorWithRecovery(t *testing.T) {
},
}

api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, true)
api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, false)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -585,7 +585,7 @@ func TestReportCheckMonitors(t *testing.T) {
return tc.Status, jsonObject{}
}

api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, true)
api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, false)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -643,7 +643,7 @@ func TestReportCheckMonitors_NetworkError(t *testing.T) {
return http.StatusSeeOther, jsonObject{}
}

api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, true)
api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, false)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -708,7 +708,7 @@ func TestReportCheckMonitors_NetworkErrorWithRecovery(t *testing.T) {
return http.StatusOK, jsonObject{}
}

api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, true)
api, err := mackerel.NewAPI(conf.Apibase, conf.Apikey, true, false)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 7022f7c

Please sign in to comment.