I have multiple integration test files that each create the servicestack AppHost for the tests that file.
Running a single file of tests works just fine, but when I run multiple test files at the same time, I start getting errors about items in my database that already exist. This is because in each test file, I create an in-memory database and add some users to it in the AppHost container.
So I think what happens is that the first test file adds the users to the database, and at the same time the second file tries to do that same, but must be sharing an instance of AppHost somehow in the background and thus running into this problem.
I’m setting up the integration test like the documentation How to write Unit & Integration tests
What’s you recommendation for running multiple integration test files that each spin up AppHost?