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

GrpcLifecycleObserverTest #2414

Open
Scottmitch opened this issue Nov 7, 2022 · 2 comments
Open

GrpcLifecycleObserverTest #2414

Scottmitch opened this issue Nov 7, 2022 · 2 comments
Labels
flaky tests Unit tests are flaky

Comments

@Scottmitch
Copy link
Member

https://github.com/apple/servicetalk/runs/9343043456

GrpcLifecycleObserverTest.testBiDiStream(boolean) [1] error=false
org.mockito.exceptions.verification.NoInteractionsWanted: 
No interactions wanted here:
-> at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.verifyObservers(GrpcLifecycleObserverTest.java:276)
But found this interaction on mock 'clientRequestObserver':
-> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestDataRequested(BiGrpcLifecycleObserver.java:134)
***
For your reference, here is the list of all invocations ([?] - means unverified).
1. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestDataRequested(BiGrpcLifecycleObserver.java:134)
2. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestData(BiGrpcLifecycleObserver.java:143)
3. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestComplete(BiGrpcLifecycleObserver.java:161)
4. [?]-> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestDataRequested(BiGrpcLifecycleObserver.java:134)


at app//io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.verifyObservers(GrpcLifecycleObserverTest.java:276)
	at app//io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.runTest(GrpcLifecycleObserverTest.java:224)
	at app//io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.testBiDiStream(GrpcLifecycleObserverTest.java:207)
@idelpivnitskiy
Copy link
Member

idelpivnitskiy commented Dec 9, 2022

https://github.com/apple/servicetalk/pull/2461/checks?check_run_id=10003887147

GrpcLifecycleObserverTest.testBiDiStream(boolean) [1] error=false
org.mockito.exceptions.verification.NoInteractionsWanted: 
No interactions wanted here:
-> at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.verifyObservers(GrpcLifecycleObserverTest.java:276)
But found this interaction on mock 'clientRequestObserver':
-> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestDataRequested(BiGrpcLifecycleObserver.java:134)
***
For your reference, here is the list of all invocations ([?] - means unverified).
1. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestDataRequested(BiGrpcLifecycleObserver.java:134)
2. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestData(BiGrpcLifecycleObserver.java:143)
3. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestComplete(BiGrpcLifecycleObserver.java:161)
4. [?]-> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcRequestObserver.onRequestDataRequested(BiGrpcLifecycleObserver.java:134)

	at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.verifyObservers(GrpcLifecycleObserverTest.java:276)
	at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.runTest(GrpcLifecycleObserverTest.java:224)
	at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.testBiDiStream(GrpcLifecycleObserverTest.java:207)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

@idelpivnitskiy
Copy link
Member

https://github.com/apple/servicetalk/pull/2693/checks?check_run_id=16800089358

GrpcLifecycleObserverTest.testResponseStream(boolean) [1] error=false

org.mockito.exceptions.verification.NoInteractionsWanted: 
No interactions wanted here:
-> at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.verifyObservers(GrpcLifecycleObserverTest.java:276)
But found this interaction on mock 'serverResponseObserver':
-> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onResponseDataRequested(BiGrpcLifecycleObserver.java:199)
***
For your reference, here is the list of all invocations ([?] - means unverified).
1. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onResponseDataRequested(BiGrpcLifecycleObserver.java:199)
2. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onResponseData(BiGrpcLifecycleObserver.java:208)
3. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onResponseTrailers(BiGrpcLifecycleObserver.java:217)
4. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onGrpcStatus(BiGrpcLifecycleObserver.java:226)
5. -> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onResponseComplete(BiGrpcLifecycleObserver.java:235)
6. [?]-> at io.servicetalk.grpc.utils.BiGrpcLifecycleObserver$BiGrpcResponseObserver.onResponseDataRequested(BiGrpcLifecycleObserver.java:199)

	at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.verifyObservers(GrpcLifecycleObserverTest.java:276)
	at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.runTest(GrpcLifecycleObserverTest.java:226)
	at io.servicetalk.grpc.netty.GrpcLifecycleObserverTest.testResponseStream(GrpcLifecycleObserverTest.java:201)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)

@idelpivnitskiy idelpivnitskiy added the flaky tests Unit tests are flaky label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky tests Unit tests are flaky
Projects
None yet
Development

No branches or pull requests

2 participants