From 39853718a6d54f77ff1be4b60d62e6f7ee732c60 Mon Sep 17 00:00:00 2001 From: Ryan Martin Date: Thu, 29 Feb 2024 02:19:31 +0700 Subject: [PATCH] chore: update ports from 3333 -> 4040 --- cmd/world/cardinal/dev.go | 2 +- cmd/world/root/root_test.go | 6 +++--- common/tea_cmd/docker.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/world/cardinal/dev.go b/cmd/world/cardinal/dev.go index caf2b03..375eca3 100644 --- a/cmd/world/cardinal/dev.go +++ b/cmd/world/cardinal/dev.go @@ -19,7 +19,7 @@ import ( ) const ( - CardinalPort = "3333" + CardinalPort = "4040" RedisPort = "6379" // flagWatch : Flag for hot reload support diff --git a/cmd/world/root/root_test.go b/cmd/world/root/root_test.go index 4cdef9b..4608ae4 100644 --- a/cmd/world/root/root_test.go +++ b/cmd/world/root/root_test.go @@ -24,7 +24,7 @@ type healthResponse struct { func getHealthCheck() (*healthResponse, error) { var healtCheck healthResponse - resp, err := http.Get("http://127.0.0.1:3333/health") + resp, err := http.Get("http://127.0.0.1:4040/health") if err != nil { return nil, err } @@ -184,7 +184,7 @@ func TestCreateStartStopRestartPurge(t *testing.T) { // Check cardinal health (expected error) _, err = getHealthCheck() assert.Error(t, err, - "Get \"http://127.0.0.1:3333/health\": dial tcp 127.0.0.1:3333: connect: connection refused") + "Get \"http://127.0.0.1:4040/health\": dial tcp 127.0.0.1:4040: connect: connection refused") } func TestDev(t *testing.T) { @@ -249,5 +249,5 @@ func TestDev(t *testing.T) { } assert.Error(t, err, - "Get \"http://127.0.0.1:3333/health\": dial tcp 127.0.0.1:3333: connect: connection refused") + "Get \"http://127.0.0.1:4040/health\": dial tcp 127.0.0.1:4040: connect: connection refused") } diff --git a/common/tea_cmd/docker.go b/common/tea_cmd/docker.go index 599b597..22688d2 100644 --- a/common/tea_cmd/docker.go +++ b/common/tea_cmd/docker.go @@ -40,7 +40,7 @@ func dockerComposeWithCfg(cfg config.Config, args ...string) error { env = append(env, k+"="+v) } if cfg.Debug { - env = append(env, "CARDINAL_ADDR=cardinal-debug:3333") + env = append(env, "CARDINAL_ADDR=cardinal-debug:4040") } cmd.Env = env