Skip to content

Fix race conditions in our template tests #604

@FranjoMindek

Description

@FranjoMindek

Currently, our templates e2e tests can fail due to race conditions.
Once such race condition is around updating user's subscription status in time before we read and test the user's subscription status.

This one was recorded by me:

  1. invoice.paid webhook event sent timestamp - 2:24:58
Image
  1. Backend reacting to the invoice.paid event and updating the subscription status: 2:25:07
Image
  1. Client reading the user's subscription status on the Account page: 2:25:05
Image

This results in us failing the e2e-tests.

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