EventStore / EventStore-Client-Go

Go Client for Event Store version 20 and above.
Apache License 2.0
105 stars 27 forks source link

Cleanup eventstoredb in each test #142

Closed mehdihadeli closed 1 year ago

mehdihadeli commented 1 year ago

Hi, Firstly, thanks for your useful library. How can I clean up eventstoredb in each integration test?

YoEight commented 1 year ago

Hey @mehdihadeli, I would advise you to run the database in in-memory mode in that case. You can achieve that by setting the env variable EVENTSTORE_IN_MEM to true or 1 when running the container.

mehdihadeli commented 1 year ago

Hi, Thanks, Let me check.