Skip to content

Tests randomly fail when trying to create a new tmp repo #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
robertodecurnex opened this issue Apr 12, 2013 · 0 comments
Closed

Tests randomly fail when trying to create a new tmp repo #66

robertodecurnex opened this issue Apr 12, 2013 · 0 comments
Assignees
Milestone

Comments

@robertodecurnex
Copy link
Contributor

Seems like the repo path is not random enough so some times we end up trying to create/clone a new repository into an already taken path.

==============================================================================

Error: test_git_init_remote_git(TestInit)

Errno::EEXIST: File exists - /tmp/git_test1365775072186

/home/travis/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/fileutils.rb:243:in `mkdir'

/home/travis/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'

/home/travis/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/fileutils.rb:172:in `mkdir'

/home/travis/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/fileutils.rb:171:in `each'

/home/travis/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/fileutils.rb:171:in `mkdir'

/home/travis/build/robertodecurnex/ruby-git/tests/units/../test_helper.rb:48:in `in_temp_dir'

/home/travis/build/robertodecurnex/ruby-git/tests/units/test_init.rb:42:in `test_git_init_remote_git'

39: end

40:

41: def test_git_init_remote_git

=> 42: in_temp_dir do |dir|

43: assert(!File.exists?(File.join(dir, 'config')))

44:

45: in_temp_dir do |path|

==============================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant