mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
Merge pull request #126805 from bart0sh/PR155-DRA-fix-TestGRPCConnIsReused
DRA: fix failing test
This commit is contained in:
commit
f6c88abb2a
@ -109,8 +109,9 @@ func TestGRPCConnIsReused(t *testing.T) {
|
|||||||
m := sync.Mutex{}
|
m := sync.Mutex{}
|
||||||
|
|
||||||
p := &Plugin{
|
p := &Plugin{
|
||||||
backgroundCtx: ctx,
|
backgroundCtx: ctx,
|
||||||
endpoint: addr,
|
endpoint: addr,
|
||||||
|
clientCallTimeout: defaultClientCallTimeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := p.getOrCreateGRPCConn()
|
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()
|
client.mutex.Lock()
|
||||||
conn := client.conn
|
conn := client.conn
|
||||||
|
Loading…
Reference in New Issue
Block a user