Skip to content

Commit 1f12a5d

Browse files
committed
fix tests
1 parent d5e5994 commit 1f12a5d

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
@@ -218,7 +218,7 @@ func TestFnInvokeRunnerExecution(t *testing.T) {
218218
{"/invoke/http_stream_fn_id", oomer, nil, http.MethodPost, http.StatusBadGateway, nil, "error receiving function response", nil},
219219
{"/invoke/http_stream_fn_id", bigbuf, nil, http.MethodPost, http.StatusRequestEntityTooLarge, nil, "", nil},
220220

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

224224
// XXX(reed): nil, nil, what are these?

api/server/runner_httptrigger_test.go

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

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

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

0 commit comments

Comments
 (0)