omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
723 stars 158 forks source link

Fix TestFromPBF on Arch Linux #258

Closed simon04 closed 2 years ago

simon04 commented 3 years ago
--- FAIL: TestFromPBF (2.38s)
    --- FAIL: TestFromPBF/unable_to_fetch_current_state (2.00s)
        state_test.go:69: expected error with "no such host", got fetching current sequence for estimated import sequence: fetching current state: Get "https://unknownurl_planet.openstreetmap.org/replication/day/state.txt": dial tcp: lookup unknownurl_planet.openstreetmap.org: No address associated with hostname
FAIL

AUR package: https://aur.archlinux.org/packages/imposm/

olt commented 3 years ago

Now it does work on Arch but not elsewhere. Can you update the test so that it checks both variations?

Maybe by using regexp?

errMatches: "no such host|No address associated with hostname"

simon04 commented 3 years ago

@olt, feel free to fix my PR. I'm unsure when I'll find the time to do so...

francois2metz commented 2 years ago

This has been fixed in https://github.com/omniscale/imposm3/commit/c59b5fe3ad67fc87230aeca150a071fa39aeedfe.

olt commented 2 years ago

Yes. I just fixed it without realizing that I suggested the same fix here already ;-)