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

test(StorageManager): Convert TTE tests to MTE #5045

Merged
merged 4 commits into from
Oct 1, 2022

Conversation

keturn
Copy link
Member

@keturn keturn commented Jun 11, 2022

Fixes #5032

All the assertions are intact.

One thing I skipped is setting up a RecordAndReplaySerializer for the StorageManager. I left the RecordAndReplay fields there to not add more renaming-noise to this PR than necessary, but they all stay null.

I'm okay with leaving R&R out. This test case has no assertions that are specific to R&R functionality, and it's optional to StorageManager.

@keturn keturn added the Category: Test/QA Requests, Issues and Changes targeting tests and quality assurance label Jun 11, 2022
@keturn keturn force-pushed the test/5032/storageManagerMTE branch from 5e68228 to c83f16d Compare June 12, 2022 23:51
@keturn keturn marked this pull request as ready for review June 12, 2022 23:52
Copy link
Member

@jdrueckert jdrueckert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me from what I saw 👍

}

@Test
@Order(1)
public void testGetUnstoredPlayerReturnsNewStor() {
PlayerStore store = esm.loadPlayerStore(PLAYER_ID);
public void testGetUnstoredPlayerReturnsNewStor(StorageManager esm) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have to hand-over the StorageManager for every test case now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed some things from being fields on the test class. It was convenient to help get the tests passing one at a time, and it's consistent with how other code would get the storage manager from a Context.

@keturn keturn merged commit 16993c1 into develop Oct 1, 2022
@keturn keturn deleted the test/5032/storageManagerMTE branch October 1, 2022 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Test/QA Requests, Issues and Changes targeting tests and quality assurance
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Convert StorageManagerTest to MTE
2 participants