Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Failed prerequisites & unit test #571

Open
softronsts opened this issue Nov 9, 2021 · 0 comments
Open

Failed prerequisites & unit test #571

softronsts opened this issue Nov 9, 2021 · 0 comments

Comments

@softronsts
Copy link

When doing make all,

Issue no.1

Running scripts/check_lint.sh
level=warning msg="[runner] Can't run linter goanalysis_metalinter: ctrlflow: failed prerequisites: [email protected]/hyperledger/fabric/extensions/gossip/blockpublisher"

Issue no.2

ok      github.com/hyperledger/fabric/extensions/validation     0.301s  coverage: 100.0% of statements
?       github.com/hyperledger/fabric/extensions/validation/mocks       [no test files]

real    55m11.776s
user    14m31.950s
sys     1m38.026s
Testing with pkcs11...
Trying configuration [0]
--- FAIL: TestGetBCCSPFromOpts (0.00s)
    pkcs11_test.go:69:
                Error Trace:    pkcs11_test.go:69
                Error:          Received unexpected error:
                                pkcs11: library path not provided
                                Could not initialize BCCSP PKCS11
                                github.com/hyperledger/fabric/bccsp/factory.GetBCCSPFromOpts
                                        /tmp/tmp.iireyQtweN/src/github.com/hyperledger/fabric/bccsp/factory/pkcs11.go:93
                                github.com/hyperledger/fabric/bccsp/factory.TestGetBCCSPFromOpts
                                        /tmp/tmp.iireyQtweN/src/github.com/hyperledger/fabric/bccsp/factory/pkcs11_test.go:58
                                testing.tRunner
                                        /home/vagrant/.gvm/gos/go1.14/src/testing/testing.go:992
                                runtime.goexit
                                        /home/vagrant/.gvm/gos/go1.14/src/runtime/asm_amd64.s:1373
                Test:           TestGetBCCSPFromOpts
    pkcs11_test.go:70:
                Error Trace:    pkcs11_test.go:70
                Error:          Expected value not to be nil.
                Test:           TestGetBCCSPFromOpts
FAIL
coverage: 82.4% of statements
FAIL    github.com/hyperledger/fabric/bccsp/factory     0.026s
Immutable = [false]
Failed initiliazing BCCSP at [{SecLevel:256 HashFamily:SHA2 Ephemeral:false Library: Label:ForFabric Pin:98765432 SoftVerify:true Immutable:false}]
pkcs11: library path not provided
FAIL    github.com/hyperledger/fabric/bccsp/pkcs11      0.017s
FAIL

real    0m7.820s
user    0m3.311s
sys     0m0.619s
Makefile:148: recipe for target 'unit-test' failed
make[1]: *** [unit-test] Error 1
make[1]: Leaving directory '/tmp/tmp.iireyQtweN/src/github.com/hyperledger/fabric'
Remove tmp directory is /tmp/tmp.iireyQtweN ...
Makefile:69: recipe for target 'fabric-unit-test' failed
make: *** [fabric-unit-test] Error 2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant