Closed sbender9 closed 1 month ago
@tkurki if you're ok with this in concept, I'll add some tests...
Makes sense to me
why is this test working when I run it by itself? But not when I run all of them?
Somehow I am getting
{"context":"vessels.urn:mrn:signalk:uuid:c0d79334-4e25-4245-8892-54e8ccc8021d","updates":[{"$source":"courseApi","timestamp":"2024-05-04T20:23:24.865Z","values":[{"path":"navigation.course.nextPoint","value":null}]}]}
Other tests are creating stuff under serverState that creates deltas during server startup, messing up the order of the deltas that the test is getting. There's a new startServer that purges the settings directory before server startup that should be used.
The culprit here is courseApi, that stores the course settings so that they survive server restarts.
There is one issue... When there is the same meta data from baseDeltas and from another source (like a plugin). This will delete the plugins meta for that field until restart or the plugin sends it again.
I think we can live with that...?