Skip to content

Commit

Permalink
Fix failing test suite (#301)
Browse files Browse the repository at this point in the history
Adding branching to the nightly build of EdgeDB made this test suite
fail because it happened to use the default database name in a test.

https://github.com/edgedb/edgedb-go/actions/runs/8218301024/job/22475007501
  • Loading branch information
fmoor authored Mar 11, 2024
1 parent 92f425b commit ce5193c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/client/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ func TestQueryCachingIncludesOutType(t *testing.T) {
func TestObjectWithoutID(t *testing.T) {
ctx := context.Background()

type Database struct {
type Function struct {
Name string `edgedb:"name"`
}

var result Database
var result Function
err := client.QuerySingle(
ctx, `
SELECT sys::Database{ name }
FILTER .name = 'edgedb'
SELECT schema::Function{ name }
FILTER .name = 'std::str_trim'
LIMIT 1`,
&result,
)
assert.NoError(t, err)
assert.Equal(t, "edgedb", result.Name)
assert.Equal(t, "std::str_trim", result.Name)
}

func TestWrongNumberOfArguments(t *testing.T) {
Expand Down

0 comments on commit ce5193c

Please sign in to comment.