Browse Source

fix Errorf

pull/1842/head
Petabyte Storage 7 years ago
parent
commit
4769719a4b
2 changed files with 21 additions and 23 deletions
  1. +19
    -21
      glide.lock
  2. +2
    -2
      pubsub/query/parser_test.go

+ 19
- 21
glide.lock View File

@ -1,10 +1,10 @@
hash: 6efda1f3891a7211fc3dc1499c0079267868ced9739b781928af8e225420f867 hash: 6efda1f3891a7211fc3dc1499c0079267868ced9739b781928af8e225420f867
updated: 2017-08-11T20:28:34.550901198Z
updated: 2017-12-04T08:45:29.247829134-08:00
imports: imports:
- name: github.com/fsnotify/fsnotify - name: github.com/fsnotify/fsnotify
version: 4da3e2cfbabc9f751898f250b49f2439785783a1 version: 4da3e2cfbabc9f751898f250b49f2439785783a1
- name: github.com/go-kit/kit - name: github.com/go-kit/kit
version: 0873e56b0faeae3a1d661b10d629135508ea5504
version: d67bb4c202e3b91377d1079b110a6c9ce23ab2f8
subpackages: subpackages:
- log - log
- log/level - log/level
@ -18,11 +18,11 @@ imports:
- name: github.com/go-playground/universal-translator - name: github.com/go-playground/universal-translator
version: 71201497bace774495daed26a3874fd339e0b538 version: 71201497bace774495daed26a3874fd339e0b538
- name: github.com/go-stack/stack - name: github.com/go-stack/stack
version: 7a2f19628aabfe68f0766b59e74d6315f8347d22
version: 100eb0c0a9c5b306ca2fb4f165df21d80ada4b82
- name: github.com/golang/snappy - name: github.com/golang/snappy
version: 553a641470496b2327abcac10b36396bd98e45c9 version: 553a641470496b2327abcac10b36396bd98e45c9
- name: github.com/hashicorp/hcl - name: github.com/hashicorp/hcl
version: a4b07c25de5ff55ad3b8936cea69a79a3d95a855
version: 23c074d0eceb2b8a5bfdbb271ab780cde70f05a8
subpackages: subpackages:
- hcl/ast - hcl/ast
- hcl/parser - hcl/parser
@ -39,33 +39,31 @@ imports:
- name: github.com/kr/logfmt - name: github.com/kr/logfmt
version: b84e30acd515aadc4b783ad4ff83aff3299bdfe0 version: b84e30acd515aadc4b783ad4ff83aff3299bdfe0
- name: github.com/magiconair/properties - name: github.com/magiconair/properties
version: 51463bfca2576e06c62a8504b5c0f06d61312647
version: 8d7837e64d3c1ee4e54a880c5a920ab4316fc90a
- name: github.com/mattn/go-colorable - name: github.com/mattn/go-colorable
version: ded68f7a9561c023e790de24279db7ebf473ea80
version: 6fcc0c1fd9b620311d821b106a400b35dc95c497
- name: github.com/mattn/go-isatty - name: github.com/mattn/go-isatty
version: fc9e8d8ef48496124e79ae0df75490096eccf6fe
version: a5cdd64afdee435007ee3e9f6ed4684af949d568
- name: github.com/mitchellh/mapstructure - name: github.com/mitchellh/mapstructure
version: cc8532a8e9a55ea36402aa21efdf403a60d34096
- name: github.com/pelletier/go-buffruneio
version: c37440a7cf42ac63b919c752ca73a85067e05992
version: 06020f85339e21b2478f756a78e295255ffa4d6a
- name: github.com/pelletier/go-toml - name: github.com/pelletier/go-toml
version: 97253b98df84f9eef872866d079e74b8265150f1
version: 4e9e0ee19b60b13eb79915933f44d8ed5f268bdd
- name: github.com/pkg/errors - name: github.com/pkg/errors
version: c605e284fe17294bda444b34710735b29d1a9d90
version: 645ef00459ed84a119197bfb8d8205042c6df63d
- name: github.com/spf13/afero - name: github.com/spf13/afero
version: 9be650865eab0c12963d8753212f4f9c66cdcf12
version: 5660eeed305fe5f69c8fc6cf899132a459a97064
subpackages: subpackages:
- mem - mem
- name: github.com/spf13/cast - name: github.com/spf13/cast
version: acbeb36b902d72a7a4c18e8f3241075e7ab763e4 version: acbeb36b902d72a7a4c18e8f3241075e7ab763e4
- name: github.com/spf13/cobra - name: github.com/spf13/cobra
version: db6b9a8b3f3f400c8ecb4a4d7d02245b8facad66
version: 7b2c5ac9fc04fc5efafb60700713d4fa609b777b
- name: github.com/spf13/jwalterweatherman - name: github.com/spf13/jwalterweatherman
version: fa7ca7e836cf3a8bb4ebf799f472c12d7e903d66
version: 12bd96e66386c1960ab0f74ced1362f66f552f7b
- name: github.com/spf13/pflag - name: github.com/spf13/pflag
version: 80fe0fb4eba54167e2ccae1c6c950e72abf61b73 version: 80fe0fb4eba54167e2ccae1c6c950e72abf61b73
- name: github.com/spf13/viper - name: github.com/spf13/viper
version: 0967fc9aceab2ce9da34061253ac10fb99bba5b2
version: 25b30aa063fc18e48662b86996252eabdcf2f0c7
- name: github.com/syndtr/goleveldb - name: github.com/syndtr/goleveldb
version: 8c81ea47d4c41a385645e133e15510fc6a2a74b4 version: 8c81ea47d4c41a385645e133e15510fc6a2a74b4
subpackages: subpackages:
@ -82,7 +80,7 @@ imports:
- leveldb/table - leveldb/table
- leveldb/util - leveldb/util
- name: github.com/tendermint/go-wire - name: github.com/tendermint/go-wire
version: b53add0b622662731985485f3a19be7f684660b8
version: 7d50b38b3815efe313728de77e2995c8813ce13f
subpackages: subpackages:
- data - data
- data/base58 - data/base58
@ -91,11 +89,11 @@ imports:
subpackages: subpackages:
- term - term
- name: golang.org/x/crypto - name: golang.org/x/crypto
version: 5a033cc77e57eca05bdb50522851d29e03569cbe
version: c7af5bf2638a1164f2eb5467c39c6cffbd13a02e
subpackages: subpackages:
- ripemd160 - ripemd160
- name: golang.org/x/sys - name: golang.org/x/sys
version: 9ccfe848b9db8435a24c424abbc07a921adf1df5
version: 661970f62f5897bc0cd5fdca7e087ba8a98a8fa1
subpackages: subpackages:
- unix - unix
- name: golang.org/x/text - name: golang.org/x/text
@ -104,9 +102,9 @@ imports:
- transform - transform
- unicode/norm - unicode/norm
- name: gopkg.in/go-playground/validator.v9 - name: gopkg.in/go-playground/validator.v9
version: d529ee1b0f30352444f507cc6cdac96bfd12decc
version: 6d8c18553ea1ac493d049edd6f102f52e618f085
- name: gopkg.in/yaml.v2 - name: gopkg.in/yaml.v2
version: cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b
version: eb3733d160e74a9c7e442f435eb3bea458e1d19f
testImports: testImports:
- name: github.com/davecgh/go-spew - name: github.com/davecgh/go-spew
version: 6d212800a42e8ab5c146b8ace3490ee17e5225f9 version: 6d212800a42e8ab5c146b8ace3490ee17e5225f9


+ 2
- 2
pubsub/query/parser_test.go View File

@ -83,9 +83,9 @@ func TestParser(t *testing.T) {
for _, c := range cases { for _, c := range cases {
_, err := query.New(c.query) _, err := query.New(c.query)
if c.valid { if c.valid {
assert.NoErrorf(t, err, "Query was '%s'", c.query)
assert.NoError(t, err, "Query was '"+c.query+"'")
} else { } else {
assert.Errorf(t, err, "Query was '%s'", c.query)
assert.Error(t, err, "Query was '"+c.query+"'")
} }
} }
} }

Loading…
Cancel
Save