Project

General

Profile

Actions

Defect #23558

closed

IssueImportTest#test_should_not_import_with_default_tracker_when_tracker_is_invalid fails randomly

Added by Stefan Rinkes over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

To test redmine plugins, I also run redmine tests to verify the plugin doesn't screw things up.

But sometimes I get this Test Failure:

  1) Failure:
IssueImportTest#test_should_not_import_with_default_tracker_when_tracker_is_invalid [test/unit/issue_import_test.rb:89]:
"Tracker cannot be blank" not found in "Tracker doit être renseigné(e)
Statut doit être renseigné(e)" 

What I do is:

$ rake db:drop db:create db:migrate redmine:plugins:migrate RAILS_ENV=test REDMINE_LANG=en
....
$ rake redmine:load_default_data RAILS_ENV=test REDMINE_LANG=en
Default configuration data loaded.
$ rake test
....

I happens about once in three runs.
Redmine Version is 3.3.0.

Setting REDMINE_LANG for rake test doesn't help.

Any Ideas?

Actions #1

Updated by Toshi MARUYAMA about 8 years ago

  • Subject changed from running rake test might result in strange failure to IssueImportTest#test_should_not_import_with_default_tracker_when_tracker_is_invalid fails randomly
  • Category set to Code cleanup/refactoring
  • Target version set to 3.3.1
Actions #2

Updated by Toshi MARUYAMA about 8 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Merged r15511 and r15512 from trunk.
Thanks for pointing out.

Actions

Also available in: Atom PDF