Test stabilization: Test expects that Setting 'system_id' has different initial value than ID 999 but hasn't because of other tests storing ID 999 before in some scenarios.
This commit is contained in:
parent
e57707336c
commit
db1378244c
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,9 @@ class TicketNumberTest < ActiveSupport::TestCase
|
|||
|
||||
test 'number check' do
|
||||
Setting.set('ticket_number_increment', { checksum: false, min_size: 5 })
|
||||
|
||||
Setting.set('system_id', 1)
|
||||
|
||||
ticket = Ticket.create!(
|
||||
title: 'test 1',
|
||||
group: Group.lookup(name: 'Users'),
|
||||
|
@ -134,6 +137,8 @@ class TicketNumberTest < ActiveSupport::TestCase
|
|||
Setting.set('ticket_number', 'Ticket::Number::Date')
|
||||
Setting.set('ticket_number_date', { checksum: false })
|
||||
|
||||
Setting.set('system_id', 1)
|
||||
|
||||
ticket = Ticket.create!(
|
||||
title: 'test 1',
|
||||
group: Group.lookup(name: 'Users'),
|
||||
|
|
Loading…
Reference in a new issue