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

Fix TestResendEncryptionKeyOnBackupRestore test wait condition #5145

Closed
mprakhov opened this issue May 10, 2024 · 0 comments
Closed

Fix TestResendEncryptionKeyOnBackupRestore test wait condition #5145

mprakhov opened this issue May 10, 2024 · 0 comments

Comments

@mprakhov
Copy link
Contributor

mprakhov commented May 10, 2024

Problem

TestResendEncryptionKeyOnBackupRestore contains empty wait condition

// FIXME: `HandleCommunityEncryptionKeysRequest` does not return any response
// ad-hoc solution - wait for `WaitOnMessengerResponse` timeout
_, _ = WaitOnMessengerResponse(s.owner,
	func(r *MessengerResponse) bool {
		return false
	},
	"no community that satisfies criteria",
)

We can treat it as sleep(10)

Need to find a way how to understand, that keys were resent in HandleCommunityEncryptionKeysRequest from the owner side

Note: Good if we find a universal solution in order to use it with other handlers, which does not send any response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants