This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to solve failure when install openstreetmap website?

0

Hello, I follow the guide on github to install my openstreetmap website. But when I run bundle exec rake test:db, a failure occurred:

Failure:
AmfControllerTest#test_getway_old [/home/yeager/sfw/openstreetmap-website/test/controllers/amf_controller_test.rb:350]:
Expected: 0
Actual: -1

Is there anyone met the same question? How to solve it? Thanks for your help.

asked 26 Nov '17, 00:43

gleide's gravatar image

gleide
797712
accept rate: 50%

edited 06 Dec '17, 20:41

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

We'll need some more information to help. Is this the only test that fails? Have you installed the three database functions (maptile_for_point etc) mentioned in the INSTALL.md file?

(29 Nov '17, 11:52) Andy Allan

One Answer:

2

This turns out to have been a bug in the way that timezones are handled in the test suite, and has now been fixed. For more information see https://github.com/openstreetmap/openstreetmap-website/issues/1688

answered 06 Dec '17, 19:17

Andy%20Allan's gravatar image

Andy Allan
12.5k23128153
accept rate: 28%

Source code available on GitHub .