test(tvix/castore): use tokio-retry for exp backoff

Rather than using this loop, use exponential backoff while waiting for
the socket path to be created.

Change-Id: I18706a64ce06f8916a07892dfbcd409ac5b3bff1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9568
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-10-08 13:33:43 +02:00 committed by clbot
parent c0376995c9
commit b6bf3a87f1
4 changed files with 63 additions and 16 deletions

View file

@ -7181,6 +7181,38 @@ rec {
}
];
};
"tokio-retry" = rec {
crateName = "tokio-retry";
version = "0.3.0";
edition = "2018";
sha256 = "0kr1hnm5dmb9gfkby88yg2xj8g6x4i4gipva0c8ca3xyxhvfnmvz";
authors = [
"Sam Rijs <srijs@airpost.net>"
];
dependencies = [
{
name = "pin-project";
packageId = "pin-project";
}
{
name = "rand";
packageId = "rand";
}
{
name = "tokio";
packageId = "tokio";
features = [ "time" ];
}
];
devDependencies = [
{
name = "tokio";
packageId = "tokio";
features = [ "full" ];
}
];
};
"tokio-stream" = rec {
crateName = "tokio-stream";
@ -8127,6 +8159,10 @@ rec {
name = "test-case";
packageId = "test-case";
}
{
name = "tokio-retry";
packageId = "tokio-retry";
}
];
features = {
"tonic-reflection" = [ "dep:tonic-reflection" ];