Skip to content

Fix Todos test

Alfredo Sumaran requested to merge todos-tests-fix into master

Another attempt to fix random fail on Todos test.

Cloning into 'tmp/tests/gitlab-shell'...
=================/builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_net.rb:162:in `read': No such file or directory @ rb_sysopen - /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/.gitlab_shell_secret (Errno::ENOENT)
	from /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_net.rb:162:in `secret_token'
	from /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_net.rb:102:in `http_request_for'
	from /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_net.rb:113:in `request'
	from /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_net.rb:137:in `get'
	from /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_net.rb:51:in `broadcast_message'
	from /builds/gitlab-org/gitlab-ce/tmp/tests/gitlab-shell/lib/gitlab_post_receive.rb:19:in `exec'
	from /builds/gitlab-org/gitlab-ce/tmp/tests/repositories/namespace175/project177.git/hooks/post-receive:16:in `<main>'
==================================================
2nd Try error in ./spec/features/todos/todos_spec.rb:69:
 undefined method `title' for nil:NilClass 
Progress: |===================================================================

RSpec::Retry: 2nd try ./spec/features/todos/todos_spec.rb:69
Progress: |===================================================================
RSpec::Retry: 3rd try ./spec/features/todos/todos_spec.rb:69
Progress: |===================================================================

  1) Dashboard Todos GET /dashboard/todos User has multiple pages of Todos completing last todo from last page redirects to the previous page
     Failure/Error: Unable to find matching line from backtrace
     ActionView::Template::Error:
       undefined method `title' for nil:NilClass
     # ./app/models/todo.rb:53:in `body'
     # ./app/views/dashboard/todos/_todo.html.haml:29:in `_app_views_dashboard_todos__todo_html_haml___2768247688142869435_46959934177120'
     # ./app/views/dashboard/todos/index.html.haml:56:in `block in _app_views_dashboard_todos_index_html_haml___3559458394014215658_70141919140540'
     # ./app/views/dashboard/todos/index.html.haml:49:in `each'
     # ./app/views/dashboard/todos/index.html.haml:49:in `_app_views_dashboard_todos_index_html_haml___3559458394014215658_70141919140540'
     # ./lib/gitlab/middleware/go.rb:16:in `call'
     # ./lib/gitlab/middleware/static.rb:9:in `call'

Merge request reports