]> git.openstreetmap.org Git - rails.git/commit
Adapt assertion to work on different architectures
authorPablo Brasero <pablo@pablobm.com>
Wed, 18 Mar 2026 14:29:03 +0000 (14:29 +0000)
committerPablo Brasero <pablo@pablobm.com>
Wed, 18 Mar 2026 14:43:49 +0000 (14:43 +0000)
commitba84bb62fda338833345bc6e2b8f7ab6b855a03b
tree75c9e82e633f12cc23395de8b8258d911da71de6
parent7943b4cf3d71742777af8487863a00ad70e41fd4
Adapt assertion to work on different architectures

This assertion was working well until recently. For some reason now it
doesn't work on macOS, where the error from LibXML is different from
what it was before.

On Debian 13 (Trixie), I can still see the error we have been expecting
for over a year:

```
Fatal error: Start tag expected, '<' not found at :1.
```

However, on macOS 15.7.4 (Sequoia) I am now seeing:

```
Fatal error: Document is empty at :1.
```

I'm guessing this is a change in the underlying libxml2. I can see
that on macOS I upgraded the library to 2.15.2 earlier this week
(using Homebrew) Perhaps this has a slightly different behaviour from
the 2.12.17 I have on Debian.
test/jobs/trace_importer_job_test.rb