Skip to content

Commit

Permalink
test(spanner): fix the json integration test (#4668)
Browse files Browse the repository at this point in the history
  • Loading branch information
hengfengli committed Aug 25, 2021
1 parent b434d9d commit 4f04795
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spanner/integration_test.go
Expand Up @@ -1796,13 +1796,12 @@ func TestIntegration_BasicTypes(t *testing.T) {
val interface{}
want interface{}
}{
{col: "JSON", val: NullJSON{msg, true}, want: msg},
{col: "JSON", val: NullJSON{msg, true}, want: NullJSON{unmarshalledJSONstruct, true}},
{col: "JSON", val: NullJSON{msg, false}},
{col: "JSON", val: NullJSON{msg, false}, want: NullJSON{}},
{col: "JSON", val: nil, want: NullJSON{}},
{col: "JSONArray", val: []NullJSON(nil)},
{col: "JSONArray", val: []NullJSON{}},
{col: "JSONArray", val: []NullJSON{{msg, true}, {msg, true}, {}}},
{col: "JSONArray", val: []NullJSON{{msg, true}, {msg, true}, {}}, want: []NullJSON{{unmarshalledJSONstruct, true}, {unmarshalledJSONstruct, true}, {}}},
}...)
}

Expand Down

0 comments on commit 4f04795

Please sign in to comment.