diff --git a/definitions.go b/definitions.go index 19f91ee..d0febf4 100644 --- a/definitions.go +++ b/definitions.go @@ -10,5 +10,5 @@ var ( // // If you would like to use some other version, you can update this variable // to point to the image you want to use. - SurrealDBTag = "1.0.0-beta.9-20230402" + SurrealDBTag = "1.0.0" ) diff --git a/helpers.go b/helpers.go index 49e5a4c..2492433 100644 --- a/helpers.go +++ b/helpers.go @@ -40,7 +40,7 @@ func NewSurrealDBRaw(t testing.TB) (string, func()) { runOpt := &dockertest.RunOptions{ Repository: SurrealDBRepo, Tag: SurrealDBTag, - Cmd: []string{"start", "-p", "root"}, + Cmd: []string{"start", "--auth", "--user", "root", "--pass", "root", "memory"}, ExposedPorts: []string{targetPort}, PortBindings: map[docker.Port][]docker.PortBinding{ diff --git a/unmarshall.go b/unmarshall.go index f3726f5..b3612a1 100644 --- a/unmarshall.go +++ b/unmarshall.go @@ -96,7 +96,7 @@ func handleAsRawQuery(input interface{}) (interface{}, error) { } if raw.Status != "OK" { - return nil, fmt.Errorf("%s: %s", raw.Status, raw.Detail) + return nil, fmt.Errorf("%s: %s", raw.Status, raw.Result) } return raw.Result, nil