links-lang / links

Links: Linking Theory to Practice for the Web
http://www.links-lang.org
Other
333 stars 43 forks source link

Fix database unit test suite sample config #1154

Closed dhil closed 2 years ago

dhil commented 2 years ago

The sample config for the database unit test suite was using hardcoded constants rather than the $LINKS_POSTGRES_* family of environment variables like the rest of the testing infrastructure.

dhil commented 2 years ago

Something is wrong in the configuration of no database unit tests. The description says "NO DATABASE" but the test suite is evidently trying to load whatever database driver is described by the config file.

dhil commented 2 years ago

I figured out what is happening. The test runners always generate a config with database information, and Links currently eagerly loads a default config if noone is given.