Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm test fails with timeout error #41

Open
giltachy opened this issue Jul 9, 2019 · 0 comments
Open

npm test fails with timeout error #41

giltachy opened this issue Jul 9, 2019 · 0 comments

Comments

@giltachy
Copy link

giltachy commented Jul 9, 2019

npm test fails with below error:

[email protected] test /home/nodejs/BlockchainNetwork-CompositeJourney
mocha --recursive

Commodity Trading
1) "before all" hook in "Commodity Trading"

0 passing (3s)
1 failing

  1. Commodity Trading
    "before all" hook in "Commodity Trading":
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/nodejs/BlockchainNetwork-CompositeJourney/test/sample.js)

npm ERR! Test failed. See above for more details.


peer log below

[[36m2019-07-09 17:38:38.718 UTC [chaincode] LaunchConfig -> DEBU 3cd^[[0m launchConfig: executable:"/bin/sh",Args:[/bin/sh,-c,cd /usr/local/src; npm start -- --peer.address peer0.org1.example.com:7052],Envs:[CORE_CHAINCODE_LOGGING_LEVEL=DEBUG,CORE_CHAINCODE_LOGGING_SHIM=warning,CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message},CORE_CHAINCODE_ID_NAME=my-network:0.0.1,CORE_PEER_TLS_ENABLED=false],Files:[]
^[[36m2019-07-09 17:38:38.718 UTC [chaincode] Start -> DEBU 3ce^[[0m start container: my-network:0.0.1
^[[36m2019-07-09 17:38:38.718 UTC [chaincode] Start -> DEBU 3cf^[[0m start container with args: /bin/sh -c cd /usr/local/src; npm start -- --peer.address peer0.org1.example.com:7052
^[[36m2019-07-09 17:38:38.718 UTC [chaincode] Start -> DEBU 3d0^[[0m start container with env:
CORE_CHAINCODE_LOGGING_LEVEL=DEBUG
CORE_CHAINCODE_LOGGING_SHIM=warning
CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}
CORE_CHAINCODE_ID_NAME=my-network:0.0.1
CORE_PEER_TLS_ENABLED=false
^[[36m2019-07-09 17:38:38.718 UTC [container] lockContainer -> DEBU 3d1^[[0m waiting for container(my-network-0.0.1) lock
^[[36m2019-07-09 17:38:38.718 UTC [container] lockContainer -> DEBU 3d2^[[0m got container (my-network-0.0.1) lock
^[[36m2019-07-09 17:38:38.720 UTC [dockercontroller] Start -> DEBU 3d3^[[0m Cleanup container dev-peer0.org1.example.com-my-network-0.0.1
^[[36m2019-07-09 17:38:38.731 UTC [dockercontroller] stopInternal -> DEBU 3d4^[[0m Stop container dev-peer0.org1.example.com-my-network-0.0.1(No such container: dev-peer0.org1.example.com-my-network-0.0.1)
^[[36m2019-07-09 17:38:38.734 UTC [dockercontroller] stopInternal -> DEBU 3d5^[[0m Kill container dev-peer0.org1.example.com-my-network-0.0.1 (No such container: dev-peer0.org1.example.com-my-network-0.0.1)
^[[36m2019-07-09 17:38:38.737 UTC [dockercontroller] stopInternal -> DEBU 3d6^[[0m Remove container dev-peer0.org1.example.com-my-network-0.0.1 (No such container: dev-peer0.org1.example.com-my-network-0.0.1)
^[[36m2019-07-09 17:38:38.738 UTC [dockercontroller] Start -> DEBU 3d7^[[0m Start container dev-peer0.org1.example.com-my-network-0.0.1
^[[36m2019-07-09 17:38:38.738 UTC [dockercontroller] getDockerHostConfig -> DEBU 3d8^[[0m docker container hostconfig NetworkMode: composer_default
^[[36m2019-07-09 17:38:38.741 UTC [dockercontroller] createContainer -> DEBU 3d9^[[0m Create container: dev-peer0.org1.example.com-my-network-0.0.1
^[[36m2019-07-09 17:38:38.757 UTC [dockercontroller] Start -> DEBU 3da^[[0m start-could not find image <dev-peer0.org1.example.com-my-network-0.0.1-d3389f9e23aecff59bba2fd5a2aaa6c0e009c0fbf7ba1c00fed746f8a9cd23e7> (container id <dev-peer0.org1.example.com-my-network-0.0.1>), because of ...attempt to recreate image
^[[36m2019-07-09 17:38:38.757 UTC [chaincode-platform] generateDockerfile -> DEBU 3db^[[0m
FROM hyperledger/fabric-baseimage:amd64-0.4.10
ADD binpackage.tar /usr/local/src
LABEL org.hyperledger.fabric.chaincode.id.name="my-network"
org.hyperledger.fabric.chaincode.id.version="0.0.1"
org.hyperledger.fabric.chaincode.type="NODE"
org.hyperledger.fabric.version="1.2.1"
org.hyperledger.fabric.base.version="0.4.10"
ENV CORE_CHAINCODE_BUILDLEVEL=1.2.1
^[[36m2019-07-09 17:38:38.764 UTC [util] DockerBuild -> DEBU 3dc^[[0m Attempting build with image hyperledger/fabric-ccenv:latest


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant