Skip to content

Commit d7bf8d1

Browse files
author
Mr. Angry
committed
Modify SDK unit test fabric dependency
Currently, the Node.js SDK unit tests are cloning the master branch from Gerrit in order to include it as a dependency inside pre-built chaincode packages. That causes the unit tests to fail on all other branches except the master branch. Until the fabric dependency is entirely removed from the SDK unit tests, the test script will instead use the local copy of the fabric project to avoid cloning the dependency directly from master. This avoids unit test failures due to incompatible versions. Change-Id: I995d16b98f1e8d337a8cd44c87133c92542437d0 Signed-off-by: Anna D Derbakova <[email protected]>
1 parent cc111e2 commit d7bf8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/node/bin/run-unit-tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ prepareExampleForDeployInNetworkMode() {
141141
cp $SRCDIR/${1}.go .
142142
mkdir -p vendor/github.com/hyperledger
143143
cd vendor/github.com/hyperledger
144-
echo "cloning github.com/hyperledger/fabric; please wait ..."
145-
git clone http://gerrit.hyperledger.org/r/fabric > /dev/null
144+
echo "copying Hyperledger fabric project dependency..."
145+
cp -r $FABRIC .
146146
cp -r fabric/vendor/github.com/op ..
147147
cd ../../..
148148
go build

0 commit comments

Comments
 (0)