Open rickhlx opened 1 year ago
Thanks for opening your first issue here! š Be sure to follow the issue template!
Hi,
Are you sure what DB on your side is up? Could you please check this again before run tests?
š Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@koddr @rickhlx I get a different error:
go test -v -timeout 30s -coverprofile=cover.out -cover ./...
? github.com/create-go-app/fiber-go-template [no test files]
? github.com/create-go-app/fiber-go-template/app/controllers [no test files]
? github.com/create-go-app/fiber-go-template/app/models [no test files]
? github.com/create-go-app/fiber-go-template/app/queries [no test files]
? github.com/create-go-app/fiber-go-template/pkg/configs [no test files]
? github.com/create-go-app/fiber-go-template/pkg/middleware [no test files]
? github.com/create-go-app/fiber-go-template/docs [no test files]
? github.com/create-go-app/fiber-go-template/pkg/repository [no test files]
? github.com/create-go-app/fiber-go-template/pkg/utils [no test files]
? github.com/create-go-app/fiber-go-template/platform/cache [no test files]
? github.com/create-go-app/fiber-go-template/platform/database [no test files]
=== RUN TestPrivateRoutes
private_routes_test.go:108:
Error Trace: /home/ubuntu/Desktop/git/fix/fiber-go-template/pkg/routes/private_routes_test.go:108
Error: Not equal:
expected: 400
actual : 401
Test: TestPrivateRoutes
Messages: delete book without JWT and body
private_routes_test.go:108:
Error Trace: /home/ubuntu/Desktop/git/fix/fiber-go-template/pkg/routes/private_routes_test.go:108
Error: Not equal:
expected: 404
actual : 500
Test: TestPrivateRoutes
Messages: delete book with credentials
--- FAIL: TestPrivateRoutes (0.04s)
Both Redis and Postgres are running
š Hello. Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am facing the same issue, any update on this?
Required check list:
My environment:
uname -a
): Darwin Kernel Version 22.1.0go version
): go version go1.20.2 darwin/arm64Describe the bug:
Running
make test
results in the following error:Steps to reproduce the behavior:
make test
Expected behavior:
No errors are expected from out-of-the-box.
Additional context:
The following error is returned from the request response body: