From 9b2c6afd90c27af79426158ed0150f4a68e0e017 Mon Sep 17 00:00:00 2001 From: Ali Ince Date: Thu, 11 Oct 2018 16:39:33 +0100 Subject: [PATCH] Fix compilation error in integration tests --- neo4j/test-integration/utils/error_utils.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/neo4j/test-integration/utils/error_utils.go b/neo4j/test-integration/utils/error_utils.go index 255b3cef..93f6bbbc 100644 --- a/neo4j/test-integration/utils/error_utils.go +++ b/neo4j/test-integration/utils/error_utils.go @@ -40,6 +40,10 @@ type testDriverError struct { message string } +func (failure *testDatabaseError) BoltError() bool { + return true +} + func (failure *testDatabaseError) Classification() string { return failure.classification } @@ -56,6 +60,10 @@ func (failure *testDatabaseError) Error() string { return fmt.Sprintf("database returned error [%s]: %s", failure.code, failure.message) } +func (failure *testConnectorError) BoltError() bool { + return true +} + func (failure *testConnectorError) State() int { return failure.state } @@ -72,6 +80,14 @@ func (failure *testConnectorError) Error() string { return fmt.Sprintf("expected connection to be in READY state, where it is %d [error is %d]", failure.state, failure.code) } +func (failure *testDriverError) BoltError() bool { + return true +} + +func (failure *testDriverError) Message() string { + return failure.message +} + func (failure *testDriverError) Error() string { return failure.message }