Skip to content

Commit 4569796

Browse files
committed
Update tests
1 parent 54ed687 commit 4569796

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sql/expression/function/json/jsontests/json_function_tests.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package jsontests
1616

1717
import (
18+
"context"
1819
"strconv"
1920
"strings"
2021
"testing"
@@ -107,7 +108,7 @@ func RunJsonTests(t *testing.T, testCases []testCase) {
107108
}
108109
}
109110

110-
cmp, err := types.JSON.Compare(ctx, expect, result)
111+
cmp, err := types.JSON.Compare(context.Background(), expect, result)
111112
req.NoError(err)
112113
if cmp != 0 {
113114
t.Error("Not equal:")

sql/expression/function/json/jsontests/json_value_tests.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package jsontests
1616

1717
import (
18+
"context"
1819
"fmt"
1920
"strings"
2021
"testing"
@@ -84,7 +85,7 @@ func RunJsonValueTests(t *testing.T, prepare prepareJsonValue) {
8485
if tt.err == nil {
8586
require.NoError(err)
8687
if tt.typ == types.JSON {
87-
cmp, err := types.JSON.Compare(ctx, tt.expected, result)
88+
cmp, err := types.JSON.Compare(context.Background(), tt.expected, result)
8889
require.NoError(err)
8990
require.Equal(0, cmp)
9091
} else {

sql/types/jsontests/json_tests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func RunJsonCompareTests(t *testing.T, tests []JsonCompareTest, prepare prepareJ
117117
}
118118
t.Run(name, func(t *testing.T) {
119119
left, right := prepare(t, test.Left, test.Right)
120-
cmp, err := types.JSON.Compare(ctx, left, right)
120+
cmp, err := types.JSON.Compare(context.Background(), left, right)
121121
require.NoError(t, err)
122122
assert.Equal(t, test.Cmp, cmp)
123123
})

0 commit comments

Comments
 (0)