mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Merge pull request #126805 from bart0sh/PR155-DRA-fix-TestGRPCConnIsReused
DRA: fix failing test
This commit is contained in:
commit
f6c88abb2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user