Skip to content

Tests fail because result data is sometimes ordered differently #27

@zvictor

Description

@zvictor

Tests can fail sometimes simply because the values coming from Fauna can be in a different order than the expected ones.

This happens mostly at:

https://github.com/zvictor/faugra/blob/a2ccb47f293af5f502a464e84423504ff3a263de/tests/specs/build-sdk.js#L193-L197

One easy way to reproduce it is by using test.only on that test. That means, replacing test(`build an sdk for the 'modularized' example, with standard cache by test.only(`build an sdk for the 'modularized' example, with standard cache.

It looks like we get one output from Fauna's expanded schema if we run our test in isolation, and a different output if we run it right after other tests.

This might be caused by how we are resetting the data in between tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions