Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Journal before tests #8

Open
AndersSahlin opened this issue Jun 17, 2015 · 1 comment
Open

Clear Journal before tests #8

AndersSahlin opened this issue Jun 17, 2015 · 1 comment

Comments

@AndersSahlin
Copy link
Contributor

Before a test is run the journal needs to be cleared. As of now this is done using a hack in ServiceFabricJournalSpec ctor:

ServiceFabric.Journal.ServiceFabricJournal.ClearJournal(Pid, "fabric:/ServiceFabricEventJournalApplication");

@rogeralsing
Copy link
Contributor

cc @clca , the tests needs to clear the test actors journal and snapshot store before each test.
What would be the most idiomatic way of dealing with this. currently, Ive hacked a ClearJournal method onto the ServiceFabricJournal and call this from the tests init method.
This works, but maybe there is a better way of just wiping all data from the current deployment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants