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

Create test suite to check message communication boundaries #306

Open
h1divp opened this issue Oct 31, 2024 · 1 comment
Open

Create test suite to check message communication boundaries #306

h1divp opened this issue Oct 31, 2024 · 1 comment
Labels
Backend📡 Issues corresponding to the backend/API. Testing Changes made to test files & suites

Comments

@h1divp
Copy link
Collaborator

h1divp commented Oct 31, 2024

With recent updates to the formulas used to gather the correct distances from a user to a stored message or geolocation, we need to make sure that this is properly tested. This will also be useful for any future updates to our algorithms used for distance checking and nearby message retrieval. Make sure to use Jest for this, but if you have a better framework or proposal then please message a tech lead.

  1. Test coordinates that should be within the bounds of a message retrieval radius, to see if the message is actually received by a client.
  2. Test coordinates outside of this radius to make sure that these messages are not received.

Playing with obscure coordinates, large and small distances with different radii, etc are all welcome. We want to test this as thoroughly as possible.

Refer to previously made test code for a starting point. Please make sure to refer to this issue number when creating a PR.

@h1divp h1divp added Backend📡 Issues corresponding to the backend/API. Testing Changes made to test files & suites labels Oct 31, 2024
@aaditkamat
Copy link
Collaborator

Can I work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend📡 Issues corresponding to the backend/API. Testing Changes made to test files & suites
Projects
None yet
Development

No branches or pull requests

2 participants