about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-03-23T05·07+0200
committerclbot <clbot@tvl.fyi>2024-03-23T22·00+0000
commite449f423e77af593ff207a3b5f7e8d6e46d9f0ce (patch)
treed331789dde3cff73ae35948d0b60daed0d6c8ec5
parenteeb5e7abd672d40c8d3a793d90f92b996d54bc68 (diff)
fix(tvix/castore/directory/tests): close upload handle r/7767
We need to ensure the Directories are successfully uploaded before doing
any testing with them.

Change-Id: Iafa8deb86b3d5eb302ebfba3ced34385f67a7229
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11244
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
-rw-r--r--tvix/castore/src/directoryservice/traverse.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tvix/castore/src/directoryservice/traverse.rs b/tvix/castore/src/directoryservice/traverse.rs
index 528cef757432..5c6975351b40 100644
--- a/tvix/castore/src/directoryservice/traverse.rs
+++ b/tvix/castore/src/directoryservice/traverse.rs
@@ -106,6 +106,8 @@ mod tests {
             .await
             .expect("must succeed");
 
+        handle.close().await.expect("must upload");
+
         // construct the node for DIRECTORY_COMPLICATED
         let node_directory_complicated =
             crate::proto::node::Node::Directory(crate::proto::DirectoryNode {