Tests: Add a helper method to reduce sleeping times in test.
authorlain <lain@soykaf.club>
Wed, 16 Dec 2020 09:39:36 +0000 (10:39 +0100)
committerlain <lain@soykaf.club>
Mon, 21 Dec 2020 15:31:23 +0000 (16:31 +0100)
commit0ef0aed205f7298d82649f55615193baac4b3667
tree623c29ae77e064b5db371fad1f2f38ff2c3064d4
parentba1997583842bf18949334e4f2d9c05946fc4b17
Tests: Add a helper method to reduce sleeping times in test.

This will 'time travel', i.e. change the inserted_at and update_at
fields of the object in question. This is used to backdate things
were we used sleeping before to ensure time differences.
test/pleroma/chat_test.exs
test/pleroma/conversation/participation_test.exs
test/pleroma/web/pleroma_api/controllers/chat_controller_test.exs
test/pleroma/web/twitter_api/password_controller_test.exs
test/support/helpers.ex