mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-22 06:39:39 +02:00
Tweak exception logging, sync stale behavior
This commit is contained in:
parent
9f13b5bb83
commit
29a8ac9d8a
6 changed files with 46 additions and 26 deletions
|
@ -172,15 +172,15 @@ class SyncTest < ActiveSupport::TestCase
|
|||
stale_pending = Sync.create!(
|
||||
syncable: accounts(:depository),
|
||||
status: :pending,
|
||||
created_at: 3.hours.ago
|
||||
created_at: 25.hours.ago
|
||||
)
|
||||
|
||||
stale_syncing = Sync.create!(
|
||||
syncable: accounts(:depository),
|
||||
status: :syncing,
|
||||
created_at: 3.hours.ago,
|
||||
pending_at: 3.hours.ago,
|
||||
syncing_at: 2.hours.ago
|
||||
created_at: 25.hours.ago,
|
||||
pending_at: 24.hours.ago,
|
||||
syncing_at: 23.hours.ago
|
||||
)
|
||||
|
||||
Sync.clean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue