fix flaky test on dra TestPrepareResources/should_timeout

Co-authored-by: TommyStarK <thomasmilox@gmail.com>
This commit is contained in:
charles-chenzz 2023-08-01 22:58:34 +08:00
parent 99190634ab
commit ba9ce3ab08

View File

@ -93,7 +93,7 @@ func setupFakeDRADriverGRPCServer(shouldTimeout bool) (string, tearDown, error)
driverName: driverName, driverName: driverName,
} }
if shouldTimeout { if shouldTimeout {
timeout := plugin.PluginClientTimeout + time.Millisecond timeout := plugin.PluginClientTimeout + 10*time.Millisecond
fakeDRADriverGRPCServer.timeout = &timeout fakeDRADriverGRPCServer.timeout = &timeout
} }