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

Improve tests #30

Merged
merged 3 commits into from
May 21, 2024
Merged

Improve tests #30

merged 3 commits into from
May 21, 2024

Conversation

mdumandag
Copy link
Collaborator

@mdumandag mdumandag commented May 21, 2024

Improved the tests by replacing arbitrary sleeps with waiting for indexing to be done, and adding missing awaits to the tests.

See 3dd4102 and 79f6118

This test was causing some exceptions on the server-side (that are
not problematic, just polluting the logs) because it was deleting
the namespace right after an insert, in almost the same time as
the transient indexing is being done.

This was causing us to reject transient indexing operation and log
that exception in server's log. This exception is totally safe and
can result in normal execution of our APIs, but this test was causing
it from time to time.

I have modified the test to wait for transient indexing to finish
and removed the unnecessary sleep after the namespace is deleted, as the
delete namespace operation is visible to the list namespaces operation
immediately.
@mdumandag mdumandag marked this pull request as draft May 21, 2024 12:15
fahreddinozcan
fahreddinozcan previously approved these changes May 21, 2024
@mdumandag mdumandag marked this pull request as ready for review May 21, 2024 12:36
@mdumandag mdumandag changed the title Improve delete namespace test Improve tests May 21, 2024
@fahreddinozcan
Copy link
Collaborator

🫡

@ogzhanolguncu ogzhanolguncu merged commit 85dab4f into master May 21, 2024
1 check passed
@mdumandag mdumandag deleted the improve-delete-ns-test branch May 21, 2024 13:12
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.

3 participants