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

Use Custom Prefix for Redis Tests #1658

Open
sbernard31 opened this issue Oct 18, 2024 · 0 comments
Open

Use Custom Prefix for Redis Tests #1658

sbernard31 opened this issue Oct 18, 2024 · 0 comments
Labels
housekeeping Refactoring, cleaning code or API test About testing Leshan

Comments

@sbernard31
Copy link
Contributor

In Integration tests we have several Redis tests.
Theoretically, each tests should clean key added in Redis but would be cleaner to use a dedicated prefix.
So dev can clean key related to tests easily.

In code we should have some comments like :

        // Create redis store
        Pool<Jedis> jedis = RedisTestUtil.createJedisPool();
        // TODO use custom key when https://github.com/eclipse/leshan/issues/1249 will be available
        builder.setRegistrationStore(new RedisRegistrationStore(jedis));
@sbernard31 sbernard31 added housekeeping Refactoring, cleaning code or API test About testing Leshan labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, cleaning code or API test About testing Leshan
Projects
None yet
Development

No branches or pull requests

1 participant