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

Remove low-level stable memory tests #2271

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Feb 15, 2024

This PR removes storage unit tests as well as II integration tests that make too strong assumptions about the underlying memory layout. These tests were very useful at the time when we were still operating manually on the raw memory and also during the migration to managed memory to make sure that all the bits and bytes end up exactly where we want them to.

Now, that the memory manager is well established, these tests are a hindrance to fully using its capabilities. As such, it is now acceptable to remove these tests and rely on the stable-structures crate itself being thoroughly tested.

This PR removes storage unit tests as well as II integration tests that
make too strong assumptions about the underlying memory layout. These
tests were very useful at the time when we were still operating manually
on the raw memory and also during the migration to managed memory to make
sure that all the bits and bytes end up exactly where we want them to.

Now, that the memory manager is well established, these tests are a
hindrance to fully using its capabilities. As such, it is now acceptable
to remove these tests and rely on the stable-structures crate itself being
thoroughly tested.
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!
(great line-count for this PR!)

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Feb 15, 2024
Merged via the queue into main with commit 61a7b36 Feb 15, 2024
63 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/refactor-storage-test branch February 15, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants