diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-01-29 14:17:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 14:17:40 -0800 |
commit | 961c04cae992eadb42d286d2f85f8a675bdc68c8 (patch) | |
tree | 3408f2d06f847e966c53485e2d54c692cdd037c1 /vendor/github.com/hashicorp | |
parent | 8d66523ba7d9a77129844be476732ebfd5272d64 (diff) | |
download | chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.tar.gz chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.tar.bz2 chat-961c04cae992eadb42d286d2f85f8a675bdc68c8.zip |
Upgrading server dependancies (#8154)
Diffstat (limited to 'vendor/github.com/hashicorp')
-rw-r--r-- | vendor/github.com/hashicorp/go-immutable-radix/iradix_test.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/vendor/github.com/hashicorp/go-immutable-radix/iradix_test.go b/vendor/github.com/hashicorp/go-immutable-radix/iradix_test.go index 94d7578a3..bc9c77c20 100644 --- a/vendor/github.com/hashicorp/go-immutable-radix/iradix_test.go +++ b/vendor/github.com/hashicorp/go-immutable-radix/iradix_test.go @@ -6,7 +6,7 @@ import ( "sort" "testing" - "github.com/hashicorp/uuid" + "github.com/hashicorp/go-uuid" ) func CopyTree(t *Tree) *Tree { @@ -55,7 +55,10 @@ func TestRadix_HugeTxn(t *testing.T) { txn1 := r.Txn() var expect []string for i := 0; i < defaultModifiedCache*100; i++ { - gen := uuid.GenerateUUID() + gen, err := uuid.GenerateUUID() + if err != nil { + t.Fatalf("err: %v", err) + } txn1.Insert([]byte(gen), i) expect = append(expect, gen) } @@ -85,7 +88,10 @@ func TestRadix(t *testing.T) { var min, max string inp := make(map[string]interface{}) for i := 0; i < 1000; i++ { - gen := uuid.GenerateUUID() + gen, err := uuid.GenerateUUID() + if err != nil { + t.Fatalf("err: %v", err) + } inp[gen] = i if gen < min || i == 0 { min = gen |