Skip to content

Delete users that haven't logged in for too long #706

Delete users that haven't logged in for too long

Delete users that haven't logged in for too long #706

Triggered via pull request August 13, 2024 19:14
Status Failure
Total duration 8m 6s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Deployment protection rules

Reviewers, timers, and other rules protecting deployments in this run
Event Environments Comment
Splines
approved Aug 13, 2024
testing and testing

Annotations

5 errors
Unit tests: spec/models/user_cleaner_spec.rb#L26
UserCleaner#inactive_users counts users without last_sign_in_at date as inactive Failure/Error: expect(UserCleaner.new.inactive_users.count).to eq(1) expected: 1 got: 13 (compared using ==)
Unit tests: spec/models/user_cleaner_spec.rb#L31
UserCleaner#inactive_users counts users with last_sign_in_at date older than threshold as inactive Failure/Error: expect(UserCleaner.new.inactive_users.count).to eq(1) expected: 1 got: 13 (compared using ==)
Unit tests: spec/models/user_cleaner_spec.rb#L36
UserCleaner#inactive_users does not count users with last_sign_in_at date younger than threshold as inactive Failure/Error: expect(UserCleaner.new.inactive_users.count).to eq(0) expected: 0 got: 12 (compared using ==)
Unit tests: spec/models/user_cleaner_spec.rb#L147
UserCleaner mails when setting a deletion date enqueues a deletion warning mail (40 days) Failure/Error: expect do UserCleaner.new.set_deletion_date_for_inactive_users end.to have_enqueued_mail(UserCleanerMailer, :pending_deletion_email) .with(a_hash_including(args: [40])) expected to enqueue UserCleanerMailer.pending_deletion_email exactly 1 time with [#<RSpec::Matchers::BuiltIn::Include:0x00007f3223eb4f40 @expectedS=[{:args=>[40]}], @matcher_name=:a_hash_including>], but enqueued 0
Unit tests
Process completed with exit code 1.