testing fixes
Some checks failed
golangci-lint / lint (push) Failing after 20s
Run Go Tests / build (push) Failing after 24s
Build and Push Docker Image / Build and push image (push) Successful in 2m32s
build / Build (push) Successful in 22s

This commit is contained in:
2025-05-06 20:56:12 -07:00
parent 0bae08f39c
commit d975bea218
3 changed files with 7 additions and 6 deletions

View File

@@ -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 ./...

View File

@@ -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

View File

@@ -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