def METHOD_NAME(api, resources, patched_download, worker, monkeypatch):
    params = dict(chemical_formula_reduced='Mg', wyckoff_letters=['a'], space_group_number=229, n_sites=1)
    # do initial request
    data_initial = _perform_initial_get_resources(api, params, data_length=88)
    # mimic mongo update by setting max_time_in_mongo to 0
    monkeypatch.setattr('nomad.config.resources.max_time_in_mongo', 0.)
    # repeat request, expect that resources are downloaded again
    _get_resources(api, params, is_retrieving_more=True, repeat=False)
    monkeypatch.setattr('nomad.config.resources.max_time_in_mongo', 3600)
    data_repeat = sorted(_get_resources(api, params, is_retrieving_more=True, repeat=True), key=lambda x: x['id'])
    for i in range(len(data_initial)):
        assert data_initial[i]['id'] == data_repeat[i]['id']
        assert _to_datetime(data_initial[i]['download_time']) < _to_datetime(data_repeat[i]['download_time'])