lnwire: reduce range of randomly generated features in testing.Quick case
This commit reduces the range of the number of randomly generated features in order to speed up the run time of the integration tests a bit.
This commit is contained in:
parent
424ccccc2f
commit
5adbc7fae3
@ -51,7 +51,7 @@ func randPubKey() (*btcec.PublicKey, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func randFeatureVector(r *rand.Rand) *FeatureVector {
|
func randFeatureVector(r *rand.Rand) *FeatureVector {
|
||||||
numFeatures := r.Int31n(131123)
|
numFeatures := r.Int31n(10000)
|
||||||
features := make([]Feature, numFeatures)
|
features := make([]Feature, numFeatures)
|
||||||
for i := int32(0); i < numFeatures; i++ {
|
for i := int32(0); i < numFeatures; i++ {
|
||||||
features[i] = Feature{
|
features[i] = Feature{
|
||||||
|
Loading…
Reference in New Issue
Block a user