preferences server "without DB" tests cannot be run in isolation.

Details

Type: Task

Status:Closed

Priority: Major

Resolution:
Fixed

Affects Version/s:
None

Fix Version/s:
None

Component/s:
None

Labels:

None

Description

In working to update universal to use CouchDb for its tests, I discovered something about the preferences server tests. As with all our tests, running a single test in isolation should have the same results as running it in a suite. I've found that this isn't the case for this test:

The tests only pass if the previous call to gpii.test.bootstrapServer is run first. If the "without db" test is launched in isolation, it fails to reach the database and throws an error. This is reproducible in master without altering any configuration or test steps, simply commenting
out that single line is enough.