Skip to content

Commit 719f5f5

Browse files
committed
test(server): fix rebased test fixtures
1 parent e52bd58 commit 719f5f5

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

crates/openshell-server/src/compute/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ mod tests {
28722872
resource_version: 0,
28732873
});
28742874

2875-
let created = runtime.create_sandbox(sandbox).await.unwrap();
2875+
let created = runtime.create_sandbox(sandbox, None).await.unwrap();
28762876

28772877
assert_eq!(
28782878
created.metadata.as_ref().unwrap().resource_version,
@@ -2908,11 +2908,11 @@ mod tests {
29082908
// Spawn two concurrent creation attempts for the same sandbox
29092909
let runtime1 = runtime.clone();
29102910
let sandbox1 = sandbox.clone();
2911-
let handle1 = tokio::spawn(async move { runtime1.create_sandbox(sandbox1).await });
2911+
let handle1 = tokio::spawn(async move { runtime1.create_sandbox(sandbox1, None).await });
29122912

29132913
let runtime2 = runtime.clone();
29142914
let sandbox2 = sandbox.clone();
2915-
let handle2 = tokio::spawn(async move { runtime2.create_sandbox(sandbox2).await });
2915+
let handle2 = tokio::spawn(async move { runtime2.create_sandbox(sandbox2, None).await });
29162916

29172917
// Wait for both to complete
29182918
let result1 = handle1.await.unwrap();

crates/openshell-server/src/grpc/policy.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3008,6 +3008,7 @@ mod tests {
30083008
name: name.to_string(),
30093009
created_at_ms: 1_000_000,
30103010
labels: HashMap::new(),
3011+
resource_version: 0,
30113012
}),
30123013
spec: Some(SandboxSpec {
30133014
policy: None,
@@ -3040,6 +3041,7 @@ mod tests {
30403041
name: "self".to_string(),
30413042
created_at_ms: 1_000_000,
30423043
labels: HashMap::new(),
3044+
resource_version: 0,
30433045
}),
30443046
spec: Some(SandboxSpec {
30453047
policy: None,
@@ -3071,6 +3073,7 @@ mod tests {
30713073
name: name.to_string(),
30723074
created_at_ms: 1_000_000,
30733075
labels: HashMap::new(),
3076+
resource_version: 0,
30743077
}),
30753078
spec: Some(SandboxSpec {
30763079
policy: None,
@@ -3105,6 +3108,7 @@ mod tests {
31053108
name: name.to_string(),
31063109
created_at_ms: 1_000_000,
31073110
labels: HashMap::new(),
3111+
resource_version: 0,
31083112
}),
31093113
spec: Some(SandboxSpec {
31103114
policy: None,
@@ -3139,6 +3143,7 @@ mod tests {
31393143
name: "x".to_string(),
31403144
created_at_ms: 1_000_000,
31413145
labels: HashMap::new(),
3146+
resource_version: 0,
31423147
}),
31433148
spec: Some(SandboxSpec {
31443149
policy: None,

0 commit comments

Comments
 (0)