fix(tvix/castore/import): assert end of stream
Once we break out with the root node, there may be no more elements in the stream. Change-Id: I6f5fc5662095aa2b2a56bcad506d25520d9ad00c Reviewed-on: https://cl.tvl.fyi/c/depot/+/11592 Reviewed-by: Connor Brewster <cbrewster@hey.com> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
75f2a1f97d
commit
4aff40fff8
1 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,11 @@ where
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert!(
|
||||||
|
entries.count().await == 0,
|
||||||
|
"Tvix bug: left over elements in the stream"
|
||||||
|
);
|
||||||
|
|
||||||
assert!(
|
assert!(
|
||||||
directories.is_empty(),
|
directories.is_empty(),
|
||||||
"Tvix bug: left over directories after processing ingestion stream"
|
"Tvix bug: left over directories after processing ingestion stream"
|
||||||
|
|
Loading…
Add table
Reference in a new issue