From a1d2b34f8f575dd5245e814831f8e36102c84de3 Mon Sep 17 00:00:00 2001 From: Andrea Rosa Date: Thu, 29 Mar 2018 18:57:16 +0200 Subject: [PATCH] Change port for local registry (#906) In one of the test we want a failure due to a 500 error returned by a not existing local registry, the fake server address is set to localhost:5000 In a typical local env is quite likely to have a local registry running and the default address usually is localhost:5000 and that will make the test to return a 4xx error and not the expected 500 error, this change just set a not standard port for the fake local registry to reduce the chances to clash with an existing running one. --- api/server/runner_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/runner_test.go b/api/server/runner_test.go index 1ffc59ce4..94e587e3c 100644 --- a/api/server/runner_test.go +++ b/api/server/runner_test.go @@ -327,7 +327,7 @@ func TestRouteRunnerExecution(t *testing.T) { rHdr := map[string][]string{"X-Function": {"Test"}} rImg := "fnproject/fn-test-utils" rImgBs1 := "fnproject/imagethatdoesnotexist" - rImgBs2 := "localhost:5000/fnproject/imagethatdoesnotexist" + rImgBs2 := "localhost:5050/fnproject/imagethatdoesnotexist" app := &models.App{Name: "myapp"} app.SetDefaults()