-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update MemoryQueueClient::getMessages method #34
Conversation
Testowanie MemoryQueueClient jest ciężkie bo nie można zrobić dwóch assercji na każdą wysłaną wiadomość, zważywszy, że pobieranie wiadomości jest modyfikowane przez |
Release już będzie z 1.03 -> 1.1.0 (Doszła nowa funkcjonalność). |
Nie prościej po prostu zrobić W ogóle nie bardzo rozumiem jaki jest case że to jest potrzebne, nie da się wywołać |
QueueClient::getAllMessages()
method
Też można :jeszczejak:
Chciałbym zrobić test, który sprawdza dwie wysłane wiadomości aka dwie asercje. Wyciągnięcie dwa razy wiadomości z MemoryQueueClient spowoduje, że za drugim razem już wiadomości mieć nie będę #array_splice. |
@devofdisaster @nexik @maureis jest git? |
ja bym zostawil (dawanie public prywtne property aby naprawic buga kodzie) to a zamiast tego poprawil buga w getMessages() wedlug mnie to bug bo zakladam ze autor mial na mysli POniewaz pierwsze parametry sa takie same to usuniemy tylko p i zamist array_splice bedzie array_slice Dodatkowo mysle ze splice to pomylka bo getMessages() nie powinno usuwac wiadomosci z kolejki. Do tego powinna byc osobna funkcja removeMessage() natomiast aws-bundle jest gluwnie uzywana tylko do wysylki wiadomosci bo w projekcie queue mamy osobna implementacje. |
Fakt mogła być to pomyłka (zważywszy, parametry są praktycznie takie same). Fixnięte 🔨 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚤 LGTM
For more complexity of testing the messages should be available to return and still exist in memory.