Skip to content

Commit 1626238

Browse files
committed
fix tests
1 parent 0dc6146 commit 1626238

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api/agent/lb_agent_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ func TestEnforceLbTimeout(t *testing.T) {
269269

270270
// SetCallType create a models.Call setting up the provided Call Type
271271
func SetCallType(callType string) CallOpt {
272-
return func(c *call) error {
272+
return func(cfg Config, c *call) error {
273273
c.Call = &models.Call{Type: callType}
274274
c.req, _ = http.NewRequest("GET", "http://www.example.com", nil)
275275
return nil
276276
}
277277
}
278278

279279
func ModifyCallRequest(callType string) CallOpt {
280-
return func(c *call) error {
280+
return func(cfg Config, c *call) error {
281281
c.Call.Type = callType
282282
return nil
283283
}

api/server/runner_fninvoke_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func TestFnInvokeRunnerExecution(t *testing.T) {
210210
{"/invoke/http_stream_fn_id", oomer, http.MethodPost, http.StatusBadGateway, nil, "error receiving function response", nil},
211211
{"/invoke/http_stream_fn_id", bigbuf, http.MethodPost, http.StatusRequestEntityTooLarge, nil, "", nil},
212212

213-
{"/invoke/dne_fn_id", ``, http.MethodPost, http.StatusNotFound, nil, "pull access denied", nil},
213+
{"/invoke/dne_fn_id", ``, http.MethodPost, http.StatusNotFound, nil, "Failed to pull image", nil},
214214
{"/invoke/dnereg_fn_id", ``, http.MethodPost, http.StatusBadGateway, nil, "connection refused", nil},
215215

216216
// XXX(reed): what are these?

api/server/runner_httptrigger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func TestTriggerRunnerExecution(t *testing.T) {
299299
// XXX(reed): meh we really should try to get oom out, but maybe it's better left to the logs?
300300
{"/t/myapp/httpstream", nil, oomer, "POST", http.StatusBadGateway, nil, "error receiving function response", nil},
301301

302-
{"/t/myapp/mydne", nil, ``, "GET", http.StatusNotFound, nil, "pull access denied", nil},
302+
{"/t/myapp/mydne", nil, ``, "GET", http.StatusNotFound, nil, "Failed to pull image", nil},
303303
{"/t/myapp/mydneregistry", nil, ``, "GET", http.StatusBadGateway, nil, "connection refused", nil},
304304

305305
// XXX(reed): what are these?

0 commit comments

Comments
 (0)