diff options
author | Mark Felder <feld@feld.me> | 2024-08-06 11:17:34 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-08-06 11:17:34 -0400 |
commit | 0319d1ad3c68e5942ef934a10d44151cc34290a8 (patch) | |
tree | d63373a5080960d6c3fb978b57953763ae343969 /test/support | |
parent | f8bdcaa161575e40097a82481009620edc5a0696 (diff) | |
download | pleroma-0319d1ad3c68e5942ef934a10d44151cc34290a8.tar.gz pleroma-0319d1ad3c68e5942ef934a10d44151cc34290a8.zip |
Remove test, logic was flawed
Before splitting the publish_one/1 function into two parts for testing purposes we had logic that checked the keys of params for :unreachable_since and if it was absent it did not set the instance as reachable. There is also a test to validate that when unreachable_since is nil, we set it as reachable.
However the default value of :unreachable_since when an instance is reachable is nil. The test appears to be testing a scenario that does not exist in the real world, and with this refactor we will always have an :unreachable_since key.
We were attempting to update the reachability upon every successful federation because we always include it when we generate the publish_one jobs.
Diffstat (limited to 'test/support')
0 files changed, 0 insertions, 0 deletions