Skip to content

test_hotswap_module is (rarely) flaky #2590

@coolreader18

Description

@coolreader18

I've never seen this before, so it seems uncommon, but this is from the merge queue CI for windows smoketests of #2568:

======================================================================
FAIL: test_hotswap_module (smoketests.tests.modules.HotswapModule.test_hotswap_module)
Tests hotswapping of modules.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\SpacetimeDB\SpacetimeDB\smoketests\tests\modules.py", line 244, in test_hotswap_module
    self.assertEqual(sub(), [
AssertionError: Lists differ: [{'pe[59 chars]'}]}}] != [{'pe[59 chars]'}]}}, {'person': {'deletes': [], 'inserts': [[25 chars]}]}}]

Second list contains 1 additional elements.
First extra element 1:
{'person': {'deletes': [], 'inserts': [{'id': 2, 'name': 'Cindy'}]}}

- [{'person': {'deletes': [], 'inserts': [{'id': 1, 'name': 'Horst'}]}}]
?                                                                      ^

+ [{'person': {'deletes': [], 'inserts': [{'id': 1, 'name': 'Horst'}]}},
?                                                                      ^

+  {'person': {'deletes': [], 'inserts': [{'id': 2, 'name': 'Cindy'}]}}]

Stdout:
initial update: {"person":{"deletes":[],"inserts":[]}}

I'm not sure if this is a race condition within the test or within the DB itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions