Skip to content

Commit

Permalink
Fix compilation error in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ince committed Oct 11, 2018
1 parent 6c3ca48 commit 9b2c6af
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions neo4j/test-integration/utils/error_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ type testDriverError struct {
message string
}

func (failure *testDatabaseError) BoltError() bool {
return true
}

func (failure *testDatabaseError) Classification() string {
return failure.classification
}
Expand All @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 9b2c6af

Please sign in to comment.