@@ -1214,12 +1214,16 @@ func TestSyncFuncDryRun(t *testing.T) {
12141214 expectedOutput : SyncFnDryRun {},
12151215 expectedStatus : http .StatusBadRequest ,
12161216 },
1217+ // Since the tests run in named Scopes and Collections therefore the
1218+ // default sync function is:
1219+ // function(doc){channel("<collection_name>");}
1220+ // therefore the channels returned will be named collections
12171221 {
12181222 name : "no_custom_sync_func-default_db_sync_func-doc_body-no_existing_doc-no_doc_id" ,
12191223 document : map [string ]any {"channels" : "chanNew" },
12201224 existingDoc : false ,
12211225 expectedOutput : SyncFnDryRun {
1222- Channels : base .SetFromArray ([]string {"chanNew " }),
1226+ Channels : base .SetFromArray ([]string {"sg_test_0 " }),
12231227 Access : channels.AccessMap {},
12241228 Roles : channels.AccessMap {},
12251229 },
@@ -1232,7 +1236,7 @@ func TestSyncFuncDryRun(t *testing.T) {
12321236 existingDocID : "doc22" ,
12331237 existingDocBody : `{"channels": "chanNew"}` ,
12341238 expectedOutput : SyncFnDryRun {
1235- Channels : base .SetFromArray ([]string {"chanNew " }),
1239+ Channels : base .SetFromArray ([]string {"sg_test_0 " }),
12361240 Access : channels.AccessMap {},
12371241 Roles : channels.AccessMap {},
12381242 },
0 commit comments