fix missing limit pointer

This commit is contained in:
BuckarooBanzay 2022-01-17 09:11:24 +01:00
parent 13b395143d
commit 1b08671a5b

View File

@ -65,10 +65,12 @@ func TestMapObjects(t *testing.T) {
panic(err) panic(err)
} }
limit := 1000
q := mapobjectdb.SearchQuery{ q := mapobjectdb.SearchQuery{
Pos1: pos, Pos1: pos,
Pos2: pos, Pos2: pos,
Type: "xy", Type: "xy",
Limit: &limit,
} }
objs, err := db.GetMapData(&q) objs, err := db.GetMapData(&q)
@ -120,6 +122,7 @@ func TestMapObjectsQueryWithAttribute(t *testing.T) {
panic(err) panic(err)
} }
limit := 1000
q := mapobjectdb.SearchQuery{ q := mapobjectdb.SearchQuery{
Pos1: pos, Pos1: pos,
Pos2: pos, Pos2: pos,
@ -128,6 +131,7 @@ func TestMapObjectsQueryWithAttribute(t *testing.T) {
Key: "X", Key: "X",
Value: "%y", Value: "%y",
}, },
Limit: &limit,
} }
objs, err := db.GetMapData(&q) objs, err := db.GetMapData(&q)
@ -182,6 +186,7 @@ func TestMapObjectsQueryWithAttributeIgnoreCase(t *testing.T) {
panic(err) panic(err)
} }
limit := 1000
q := mapobjectdb.SearchQuery{ q := mapobjectdb.SearchQuery{
Pos1: pos, Pos1: pos,
Pos2: pos, Pos2: pos,
@ -190,6 +195,7 @@ func TestMapObjectsQueryWithAttributeIgnoreCase(t *testing.T) {
Key: "X", Key: "X",
Value: "%bc", Value: "%bc",
}, },
Limit: &limit,
} }
objs, err := db.GetMapData(&q) objs, err := db.GetMapData(&q)