Skip to content

Commit

Permalink
Upgrade surrealdb docker image to default to 1.0.0 (#3)
Browse files Browse the repository at this point in the history
* Upgrade surrealdb docker image to default to 1.0.0

* Update to use Result instead of Detail

Detail seems to be empty with the recent version upgrade

* Update the startup command
  • Loading branch information
rytswd authored Oct 23, 2023
1 parent 9b54d87 commit 2b490a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion unmarshall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b490a4

Please sign in to comment.