Skip to content

Commit 608bc2e

Browse files
authored
Fix test for extended names (#497)
1 parent ec1adf7 commit 608bc2e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Support for geo_s2 analyzers
1010
- Add replication V2 option for database creation
1111
- Use Go 1.20.3 for testing. Add govulncheck to pipeline
12+
- Fix test for extended names
1213

1314
## [1.5.2](https://github.com/arangodb/go-driver/tree/v1.5.2) (2023-03-01)
1415
- Bump `DRIVER_VERSION`

error.go

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const (
5555
ErrArangoConflict = 1200
5656
ErrArangoDocumentNotFound = 1202
5757
ErrArangoDataSourceNotFound = 1203
58+
ErrArangoIllegalName = 1208
5859
ErrArangoUniqueConstraintViolated = 1210
5960
ErrArangoDatabaseNotFound = 1228
6061
ErrArangoDatabaseNameInvalid = 1229

test/database_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func databaseExtendedNamesRequired(t *testing.T, c driver.Client) {
262262
return
263263
}
264264

265-
if driver.IsArangoErrorWithErrorNum(err, driver.ErrArangoDatabaseNameInvalid) {
265+
if driver.IsArangoErrorWithErrorNum(err, driver.ErrArangoDatabaseNameInvalid, driver.ErrArangoIllegalName) {
266266
t.Skipf("ArangoDB is not launched with the option --database.extended-names-databases=true")
267267
}
268268

0 commit comments

Comments
 (0)