Compare commits

...

1 Commits

Author SHA1 Message Date
Mikescher 1b154c2458 Fix tests
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m30s
2026-05-30 03:55:38 +02:00
+2 -2
View File
@@ -70,8 +70,8 @@ func TestCreatePaginationPipelineWithInvalidObjectIDValue(t *testing.T) {
//fmt.Printf("# paginationPipeline:\n%+v\n\n", string(langext.Must(json.Marshal(paginationPipeline))))
//fmt.Printf("# doubleSortPipeline:\n%+v\n\n", string(langext.Must(json.Marshal(doubleSortPipeline))))
tst.AssertEqual(t, string(langext.Must(json.Marshal(paginationPipeline))), `[{"$limit":16}]`) // wrong (_id with wrong date type) fields are not used
tst.AssertEqual(t, string(langext.Must(json.Marshal(doubleSortPipeline))), `[]`) // wrong (_id with wrong date type) fields are not used
tst.AssertEqual(t, string(langext.Must(json.Marshal(paginationPipeline))), `[{"$sort":{"_id":-1}},{"$limit":16}]`) // wrong (_id with wrong date type) fields are not used
tst.AssertEqual(t, string(langext.Must(json.Marshal(doubleSortPipeline))), `[{"$sort":{"_id":-1}}]`) // wrong (_id with wrong date type) fields are not used
}
func TestCreatePaginationPipelineWithValidObjectIDValue(t *testing.T) {