Skip to content

Commit 9b2c6af

Browse files
committed
Fix compilation error in integration tests
1 parent 6c3ca48 commit 9b2c6af

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

neo4j/test-integration/utils/error_utils.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ type testDriverError struct {
4040
message string
4141
}
4242

43+
func (failure *testDatabaseError) BoltError() bool {
44+
return true
45+
}
46+
4347
func (failure *testDatabaseError) Classification() string {
4448
return failure.classification
4549
}
@@ -56,6 +60,10 @@ func (failure *testDatabaseError) Error() string {
5660
return fmt.Sprintf("database returned error [%s]: %s", failure.code, failure.message)
5761
}
5862

63+
func (failure *testConnectorError) BoltError() bool {
64+
return true
65+
}
66+
5967
func (failure *testConnectorError) State() int {
6068
return failure.state
6169
}
@@ -72,6 +80,14 @@ func (failure *testConnectorError) Error() string {
7280
return fmt.Sprintf("expected connection to be in READY state, where it is %d [error is %d]", failure.state, failure.code)
7381
}
7482

83+
func (failure *testDriverError) BoltError() bool {
84+
return true
85+
}
86+
87+
func (failure *testDriverError) Message() string {
88+
return failure.message
89+
}
90+
7591
func (failure *testDriverError) Error() string {
7692
return failure.message
7793
}

0 commit comments

Comments
 (0)