Browse Source

Maintenance: Fix time for tag test to be more stable for summer/winter time in mysql.

Co-authored-by: Florian Liebe <fl@zammad.com>
Rolf Schmidt 11 months ago
parent
commit
07e8a2fe09
1 changed files with 4 additions and 0 deletions
  1. 4 0
      spec/models/channel/email_parser/process_tag_filter_spec.rb

+ 4 - 0
spec/models/channel/email_parser/process_tag_filter_spec.rb

@@ -181,6 +181,10 @@ RSpec.describe 'Channel::EmailParser process tag filter', type: :model do
       ]
     end
 
+    before do
+      travel_to DateTime.parse('2024-01-08 09:30:00 UTC')
+    end
+
     it 'does set tags for new tickets', :aggregate_failures do
       tags = Tag.tag_list(object: 'Ticket', o_id: ticket.id)
       expect(tags).to include(*%w[new1 new2 new3])