Skip to content

Commit

Permalink
Modify SDK unit test fabric dependency
Browse files Browse the repository at this point in the history
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 <adderbak@us.ibm.com>
  • Loading branch information
Mr. Angry committed Sep 13, 2016
1 parent cc111e2 commit d7bf8d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/node/bin/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ prepareExampleForDeployInNetworkMode() {
cp $SRCDIR/${1}.go .
mkdir -p vendor/github.com/hyperledger
cd vendor/github.com/hyperledger
echo "cloning github.com/hyperledger/fabric; please wait ..."
git clone http://gerrit.hyperledger.org/r/fabric > /dev/null
echo "copying Hyperledger fabric project dependency..."
cp -r $FABRIC .
cp -r fabric/vendor/github.com/op ..
cd ../../..
go build
Expand Down

0 comments on commit d7bf8d1

Please sign in to comment.