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

@ -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