Skip to content

Commit a34b25a

Browse files
authored
test(e2e): fix rust upload path assertions (#960)
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 87f50f5 commit a34b25a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

e2e/rust/tests/sync.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async fn sandbox_file_upload_download_round_trip() {
5858

5959
let download_str = download_dir.to_str().expect("download path is UTF-8");
6060
guard
61-
.download("/sandbox/uploaded", download_str)
61+
.download("/sandbox/uploaded/upload", download_str)
6262
.await
6363
.expect("download directory");
6464

@@ -108,7 +108,7 @@ async fn sandbox_file_upload_download_round_trip() {
108108

109109
let large_down_str = large_down.to_str().expect("large_down path is UTF-8");
110110
guard
111-
.download("/sandbox/large_test", large_down_str)
111+
.download("/sandbox/large_test/large_upload", large_down_str)
112112
.await
113113
.expect("download large file");
114114

@@ -257,7 +257,7 @@ async fn upload_respects_gitignore_by_default() {
257257
let download_str = download_dir.to_str().expect("verify path is UTF-8");
258258

259259
guard
260-
.download("/sandbox/filtered", download_str)
260+
.download("/sandbox/filtered/repo", download_str)
261261
.await
262262
.expect("download filtered upload");
263263

e2e/rust/tests/upload_create.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ async fn create_with_upload_provides_files_to_command() {
3131
fs::write(upload_dir.join("src/main.py"), "print('hello')").expect("write main.py");
3232

3333
let upload_str = upload_dir.to_str().expect("upload path is UTF-8");
34+
let remote_marker = "/sandbox/data/project/marker.txt";
3435

3536
// The command reads the marker file — if upload worked, its content
3637
// appears in the output.
3738
let mut guard = SandboxGuard::create_with_upload(
3839
upload_str,
3940
"/sandbox/data",
40-
&["cat", "/sandbox/data/marker.txt"],
41+
&["cat", remote_marker],
4142
)
4243
.await
4344
.expect("sandbox create --upload");

0 commit comments

Comments
 (0)