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

Question: How to use NDK to simulate a relay in automated tests? #283

Open
gustavonmartins opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@gustavonmartins
Copy link

Hi, I need to insert automated tests in my client, and for this I need to simulate a nostr relay.

Is there a way of using NDK for this?

Ideally I would simulate that I have a relay with posts of some users, and then I subscribe to its messages. Right now I am doing this with real world relay, where I dont control the messages, so this tasks becomes difficult.

I could also create a temporary account and post some random messages that I will use for my test, but in case the delays delete it my automated tests would start to fail.

Thus, it would be good if I could use NDK for that.

Is it possible, or do you recommend another approach?

Thanks

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

No branches or pull requests

1 participant