Skip to content

Commit 84b4984

Browse files
committed
Merge remote-tracking branch 'origin/itch'
2 parents 970c07e + 84dcfa8 commit 84b4984

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

devapi/tests/ddl-t.cc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ TEST_F(Ddl, create_index)
300300
cout << "- bad index type" << endl;
301301

302302
EXPECT_ERR(coll.createIndex("bad_idx",
303-
R"({ "type": "foo",
304-
"fields": [{ "field": "$.zcount", "type": "int" }] })"));
303+
R"({ "type": "foo", "fields": [{ "field": "$.zcount", "type": "int" }] })"));
305304

306305
cout << "- bad index field type" << endl;
307306

@@ -315,14 +314,9 @@ TEST_F(Ddl, create_index)
315314

316315
cout << "- bad spatial index" << endl;
317316

318-
EXPECT_ERR(coll.createIndex("geo_idx2", R"({
319-
"type" : "SPATIAL",
320-
"fields": [{
321-
"field": "$.coords",
322-
"type" : "GEOJSON",
323-
"required" : false
324-
}]
325-
})"));
317+
EXPECT_ERR(coll.createIndex("geo_idx2",
318+
R"({ "type" : "SPATIAL", "fields": [{ "field": "$.coords", "type" : "GEOJSON", "required" : false }] })")
319+
);
326320

327321
cout << "Done!" << endl;
328322
}

0 commit comments

Comments
 (0)