Improve error handling
Export the timeout kill error and use error instead of string in result struct.
This commit is contained in:
parent
fe9ca5ffcc
commit
8ccf842518
4 changed files with 18 additions and 23 deletions
|
|
@ -333,7 +333,7 @@ func TestQueries(t *testing.T) {
|
|||
if j == nil && err == nil {
|
||||
continue
|
||||
}
|
||||
if err != nil && err.Error() == "Query Timeout" {
|
||||
if err == gremlin.ErrKillTimeout {
|
||||
timedOut = true
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue