Skip to content

Commit 2896b19

Browse files
authored
[Bugfix] Fix tests for 3.9 (#354)
1 parent 2f09ee9 commit 2896b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/query_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ func TestValidateQueryOptionShardIds(t *testing.T) {
155155
shards, err := col.Shards(ctx, true)
156156
for sk := range shards.Shards {
157157
ctx = driver.WithQueryShardIds(nil, []string{string(sk)})
158-
_, err = db.Query(ctx, "FOR doc in c RETURN c", map[string]interface{}{})
158+
_, err = db.Query(ctx, "FOR doc in c RETURN doc", map[string]interface{}{})
159159
require.NoError(t, err)
160160
}
161161
})
162162

163163
t.Run(fmt.Sprintf("Fake shards"), func(t *testing.T) {
164164
ctx = driver.WithQueryShardIds(nil, []string{"s1"})
165-
_, err = db.Query(ctx, "FOR doc in c RETURN c", map[string]interface{}{})
165+
_, err = db.Query(ctx, "FOR doc in c RETURN doc", map[string]interface{}{})
166166
require.NotNil(t, err)
167167
})
168168
}

0 commit comments

Comments
 (0)