fix flowrate dep and test
This commit is contained in:
parent
bc95700dcf
commit
8390e88e27
|
@ -5,8 +5,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
flow "github.com/tendermint/flowcontrol"
|
|
||||||
. "github.com/tendermint/go-common"
|
. "github.com/tendermint/go-common"
|
||||||
|
flow "github.com/tendermint/go-flowrate/flowrate"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,8 @@ imports:
|
||||||
subpackages:
|
subpackages:
|
||||||
- edwards25519
|
- edwards25519
|
||||||
- extra25519
|
- extra25519
|
||||||
- name: github.com/tendermint/flowcontrol
|
- name: github.com/tendermint/go-flowrate
|
||||||
version: 84d9671090430e8ec80e35b339907e0579b999eb
|
version: a20c98e61957faa93b4014fbd902f20ab9317a6a
|
||||||
- name: github.com/tendermint/go-clist
|
- name: github.com/tendermint/go-clist
|
||||||
version: 3baa390bbaf7634251c42ad69a8682e7e3990552
|
version: 3baa390bbaf7634251c42ad69a8682e7e3990552
|
||||||
- name: github.com/tendermint/go-common
|
- name: github.com/tendermint/go-common
|
||||||
|
@ -70,7 +70,7 @@ imports:
|
||||||
- name: github.com/tendermint/go-merkle
|
- name: github.com/tendermint/go-merkle
|
||||||
version: 05042c6ab9cad51d12e4cecf717ae68e3b1409a8
|
version: 05042c6ab9cad51d12e4cecf717ae68e3b1409a8
|
||||||
- name: github.com/tendermint/go-p2p
|
- name: github.com/tendermint/go-p2p
|
||||||
version: 2cee3646927182964268e63c4248db3def69ac4e
|
version: eab2baa363de01b052b88c559e803776cd2c7dd6
|
||||||
subpackages:
|
subpackages:
|
||||||
- upnp
|
- upnp
|
||||||
- name: github.com/tendermint/go-rpc
|
- name: github.com/tendermint/go-rpc
|
||||||
|
|
|
@ -6,7 +6,6 @@ import:
|
||||||
- package: github.com/gorilla/websocket
|
- package: github.com/gorilla/websocket
|
||||||
- package: github.com/spf13/pflag
|
- package: github.com/spf13/pflag
|
||||||
- package: github.com/tendermint/ed25519
|
- package: github.com/tendermint/ed25519
|
||||||
- package: github.com/tendermint/flowcontrol
|
|
||||||
- package: github.com/tendermint/go-clist
|
- package: github.com/tendermint/go-clist
|
||||||
- package: github.com/tendermint/go-common
|
- package: github.com/tendermint/go-common
|
||||||
- package: github.com/tendermint/go-config
|
- package: github.com/tendermint/go-config
|
||||||
|
@ -34,3 +33,6 @@ import:
|
||||||
- package: golang.org/x/crypto
|
- package: golang.org/x/crypto
|
||||||
subpackages:
|
subpackages:
|
||||||
- ripemd160
|
- ripemd160
|
||||||
|
- package: github.com/tendermint/go-flowrate
|
||||||
|
subpackages:
|
||||||
|
- flowrate
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
LIB=$1
|
|
||||||
|
|
||||||
if [[ "$GLIDE" == "" ]]; then
|
if [[ "$GLIDE" == "" ]]; then
|
||||||
GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
|
GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
LIB=$1
|
||||||
|
|
||||||
cat $GLIDE | grep -A1 $LIB | grep -v $LIB | awk '{print $2}'
|
cat $GLIDE | grep -A1 $LIB | grep -v $LIB | awk '{print $2}'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
# set glide.lock path
|
# set glide.lock path
|
||||||
if [[ "$GLIDE" == "" ]]; then
|
if [[ "$GLIDE" == "" ]]; then
|
||||||
|
@ -28,10 +29,11 @@ for lib in "${LIBS_GO_TEST[@]}"; do
|
||||||
done
|
done
|
||||||
|
|
||||||
for lib in "${LIBS_MAKE_TEST[@]}"; do
|
for lib in "${LIBS_MAKE_TEST[@]}"; do
|
||||||
getDep $lib
|
|
||||||
|
# checkout vendored version of lib
|
||||||
|
bash scripts/glide/checkout.sh $GLIDE $lib
|
||||||
|
|
||||||
echo "Testing $lib ..."
|
echo "Testing $lib ..."
|
||||||
cd $GOPATH/src/github.com/tendermint/$lib
|
|
||||||
make test
|
make test
|
||||||
if [[ "$?" != 0 ]]; then
|
if [[ "$?" != 0 ]]; then
|
||||||
echo "FAIL"
|
echo "FAIL"
|
||||||
|
|
Loading…
Reference in New Issue