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

[Access] Fix access connection tests for latest version of testing library #6917

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

peterargue
Copy link
Contributor

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

@peterargue peterargue requested a review from a team as a code owner January 17, 2025 19:37
Copy link
Member

@turbolent turbolent left a 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)
Copy link
Contributor Author

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)
Copy link
Contributor Author

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-commenter
Copy link

codecov-commenter commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 6 lines in your changes missing coverage. Please review.

Project coverage is 41.08%. Comparing base (8c170e3) to head (e075836).

Files with missing lines Patch % Lines
engine/access/rpc/connection/node_mock.go 71.42% 4 Missing and 2 partials ⚠️
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     
Flag Coverage Δ
unittests 41.08% <71.42%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@peterargue peterargue enabled auto-merge January 17, 2025 19:44
@peterargue peterargue added this pull request to the merge queue Jan 17, 2025
Merged via the queue into master with commit a3c2cea Jan 17, 2025
56 checks passed
@peterargue peterargue deleted the petera/fix-access-connect-test branch January 17, 2025 20:28
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.

4 participants