Skip to content

Commit

Permalink
Merge pull request #126805 from bart0sh/PR155-DRA-fix-TestGRPCConnIsR…
Browse files Browse the repository at this point in the history
…eused

DRA: fix failing test
  • Loading branch information
k8s-ci-robot authored Aug 20, 2024
2 parents 31e2c8b + 9d893c8 commit f6c88ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/kubelet/cm/dra/plugin/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ func TestGRPCConnIsReused(t *testing.T) {
m := sync.Mutex{}

p := &Plugin{
backgroundCtx: ctx,
endpoint: addr,
backgroundCtx: ctx,
endpoint: addr,
clientCallTimeout: defaultClientCallTimeout,
}

conn, err := p.getOrCreateGRPCConn()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f6c88ab

Please sign in to comment.