From 17df46a1e33391260b7b14966c3df46efd3b769c Mon Sep 17 00:00:00 2001 From: vict0rcarvalh0 Date: Thu, 13 Jun 2024 23:32:29 -0300 Subject: [PATCH] fix(tests): :bug: fixing unit tests --- .github/workflows/act.yml | 2 +- src/sample-go-docker/main_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/act.yml b/.github/workflows/act.yml index b5cb8638..b6a8e55a 100644 --- a/.github/workflows/act.yml +++ b/.github/workflows/act.yml @@ -50,7 +50,7 @@ jobs: - uses: actions/checkout@v3 - name: Build and push Docker image run: | - docker build -t src/sample-go-docker . + docker build -t src/sample-go-docker/Dockerfile . docker push src/sample-go-docker # - name: Deploy to Render.com # uses: render-actions/deploy@v1 diff --git a/src/sample-go-docker/main_test.go b/src/sample-go-docker/main_test.go index d1f883fc..665a56cb 100644 --- a/src/sample-go-docker/main_test.go +++ b/src/sample-go-docker/main_test.go @@ -21,7 +21,7 @@ func TestHandler(t *testing.T) { status, http.StatusOK) } - expected := "Hello, World!" + expected := "Victor!" if rr.Body.String() != expected { t.Errorf("handler returned unexpected body: got %v want %v", rr.Body.String(), expected)