diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index b89a6a4..44f38c1 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -25,8 +25,9 @@ jobs: run: go build ./cmd/junk2jive - name: Go Test - run: NONLOCAL_TESTS=1 go test ./... -v + run: go test ./... -v - name: Coverage Test - run: + run: go test -coverprofile=coverage.out ./... + diff --git a/Makefile b/Makefile index 2d027db..49c8738 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ run: test: @go test ./... -v test_coverage: - # @go test -cover ./... - @go test -coverprofile=coverage.out ./... - @go tool cover -func=coverage.out | grep total: | awk '{print "Total coverage: " $$3}' + @go test -cover ./... + # @go test -coverprofile=coverage.out ./... + # @go tool cover -func=coverage.out | grep total: | awk '{print "Total coverage: " $$3}' clean: @rm ./junk2jive diff --git a/internal/router/router_test.go b/internal/router/router_test.go index 701abe6..36bdd53 100644 --- a/internal/router/router_test.go +++ b/internal/router/router_test.go @@ -38,7 +38,7 @@ func TestGetRouter(t *testing.T) { } func TestCoffeeEndpoint(t *testing.T) { - origins := []string{"http://localhost:3000"} + origins := []string{"http://localhost:8080"} r := SetupRouter(origins) // Create a test server