go test -run TestProjection ./packages/library/backend/projection/
--- FAIL: TestProjection (0.00s)
main_test.go:19:
Error Trace: /home/rod/projects/_me/queue_port/packages/library/backend/projection/main_test.go:19
/home/rod/go/pkg/mod/go.mongodb.org/[email protected]/mongo/integration/mtest/mongotest.go:263
Error: Expected nil, but got: mongo.CommandError{Code:0, Message:"no responses remaining", Labels:[]string{"NetworkError", "RetryableWriteError"}, Name:"", Wrapped:no responses remaining, Raw:bson.Raw(nil)}
Test: TestProjection
FAIL
FAIL github.com/rodentskie/queue_port/packages/library/backend/projection 0.004s
FAIL
Here is the result when I run test inside the library.
nx test library-backend-projection
> nx run library-backend-projection:test
Executing command: go test -v ./... -cover -race
=== RUN TestProjection
=== RUN TestProjection/success
=== NAME TestProjection
main_test.go:19:
Error Trace: /home/rod/projects/_me/queue_port/packages/library/backend/projection/main_test.go:19
/home/rod/go/pkg/mod/go.mongodb.org/[email protected]/mongo/integration/mtest/mongotest.go:263
Error: Expected nil, but got: mongo.CommandError{Code:0, Message:"no responses remaining", Labels:[]string{"NetworkError", "RetryableWriteError"}, Name:"", Wrapped:no responses remaining, Raw:bson.Raw(nil)}
Test: TestProjection
--- FAIL: TestProjection (0.00s)
--- PASS: TestProjection/success (0.00s)
FAIL
github.com/rodentskie/queue_port/packages/library/backend/projection coverage: 77.8% of statements
FAIL github.com/rodentskie/queue_port/packages/library/backend/projection 0.016s
=== RUN TestFindProjection
=== RUN TestFindProjection/error;_not_found
=== RUN TestFindProjection/success
--- PASS: TestFindProjection (0.00s)
--- PASS: TestFindProjection/error;_not_found (0.00s)
--- PASS: TestFindProjection/success (0.00s)
=== RUN TestInsertProjection
=== RUN TestInsertProjection/success_insert
=== RUN TestInsertProjection/custom_error_duplicate
--- PASS: TestInsertProjection (0.00s)
--- PASS: TestInsertProjection/success_insert (0.00s)
--- PASS: TestInsertProjection/custom_error_duplicate (0.00s)
=== RUN TestUpdateProjection
=== RUN TestUpdateProjection/success
--- PASS: TestUpdateProjection (0.00s)
--- PASS: TestUpdateProjection/success (0.00s)
PASS
github.com/rodentskie/queue_port/packages/library/backend/projection/helper coverage: 89.5% of statements
ok github.com/rodentskie/queue_port/packages/library/backend/projection/helper (cached) coverage: 89.5% of statements
FAIL
Failed to execute command: go test -v ./... -cover -race Error: Command failed: go test -v ./... -cover -race
at checkExecSyncError (node:child_process:861:11)
at execSync (node:child_process:932:15)
at runGoCommand (/home/rod/projects/_me/queue_port/node_modules/@nx-go/nx-go/src/utils/run-go-command.helper.js:13:38)
at /home/rod/projects/_me/queue_port/node_modules/@nx-go/nx-go/src/executors/test/executor.js:14:41
at Generator.next (<anonymous>)
at /home/rod/projects/_me/queue_port/node_modules/tslib/tslib.js:167:75
at new Promise (<anonymous>)
at __awaiter (/home/rod/projects/_me/queue_port/node_modules/tslib/tslib.js:163:16)
at runExecutor (/home/rod/projects/_me/queue_port/node_modules/@nx-go/nx-go/src/executors/test/executor.js:7:34) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 28769,
stdout: null,
stderr: null
}
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
> NX Ran target test for project library-backend-projection (840ms)
โ 1/1 failed
โ 0/1 succeeded [0 read from cache]