[openstreetmap/openstreetmap-website] Tests: "duplicate key value violates unique constraint "languages_pkey" (#1421)
Ilya Zverev
notifications at github.com
Tue Jan 31 16:59:13 UTC 2017
A fresh install with Vagrant works, but `rake test` give a lot of similar errors:
```
93) Error:
DiaryCommentTest#test_body_must_be_present:
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "languages_pkey"
DETAIL: Key (code)=(en) already exists.
: INSERT INTO "languages" ("code", "english_name", "native_name") VALUES ($1, $2, $3) RETURNING "code"
test/models/diary_comment_test.rb:8:in `setup'
```
The same error I get from an old and recently updated installation at test.osmz.ru. How can I fix it?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1421
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170131/12179120/attachment.html>
More information about the rails-dev
mailing list