Merge pull request #126805 from bart0sh/PR155-DRA-fix-TestGRPCConnIsReused

DRA: fix failing test
This commit is contained in:
Kubernetes Prow Robot 2024-08-20 11:05:21 -07:00 committed by GitHub
commit f6c88abb2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,6 +111,7 @@ func TestGRPCConnIsReused(t *testing.T) {
p := &Plugin{
backgroundCtx: ctx,
endpoint: addr,
clientCallTimeout: defaultClientCallTimeout,
}
conn, err := p.getOrCreateGRPCConn()
@ -148,7 +149,8 @@ func TestGRPCConnIsReused(t *testing.T) {
},
},
}
client.NodePrepareResources(context.TODO(), req)
_, err = client.NodePrepareResources(context.TODO(), req)
assert.NoError(t, err)
client.mutex.Lock()
conn := client.conn