-
Notifications
You must be signed in to change notification settings - Fork 180
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
[Access] Fix access connection tests for latest version of testing library #6917
Conversation
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.
Thanks!
@@ -674,10 +657,6 @@ func TestEvictingCacheClients(t *testing.T) { | |||
func(context.Context, *access.PingRequest) error { return nil }, | |||
) | |||
|
|||
netReq := &access.GetNetworkParametersRequest{} | |||
netResp := &access.GetNetworkParametersResponse{} | |||
cn.handler.On("GetNetworkParameters", testifymock.Anything, netReq).Return(netResp, nil) |
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.
this was not used and isn't needed for the test
@@ -749,9 +728,7 @@ func TestEvictingCacheClients(t *testing.T) { | |||
|
|||
// Call a gRPC method on the client | |||
_, err = client.Ping(ctx, pingReq) | |||
// Check that Ping was called | |||
cn.handler.AssertCalled(t, "Ping", testifymock.Anything, pingReq) |
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.
these asserts are called automatically now for the collection and execution mock clients
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6917 +/- ##
==========================================
- Coverage 41.09% 41.08% -0.01%
==========================================
Files 2121 2121
Lines 185912 185922 +10
==========================================
- Hits 76395 76386 -9
- Misses 103104 103119 +15
- Partials 6413 6417 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Fixes failures from https://github.com/onflow/flow-go/actions/runs/12402358137/job/34623739390?pr=6779
Needed to merge #6779 which upgrades the testify library