File tree Expand file tree Collapse file tree
crates/openshell-server/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change @@ -3015,6 +3015,7 @@ mod tests {
30153015 name : name. to_string ( ) ,
30163016 created_at_ms : 1_000_000 ,
30173017 labels : HashMap :: new ( ) ,
3018+ resource_version : 0 ,
30183019 } ) ,
30193020 spec : Some ( SandboxSpec {
30203021 policy : None ,
@@ -3047,6 +3048,7 @@ mod tests {
30473048 name : "self" . to_string ( ) ,
30483049 created_at_ms : 1_000_000 ,
30493050 labels : HashMap :: new ( ) ,
3051+ resource_version : 0 ,
30503052 } ) ,
30513053 spec : Some ( SandboxSpec {
30523054 policy : None ,
@@ -3078,6 +3080,7 @@ mod tests {
30783080 name : name. to_string ( ) ,
30793081 created_at_ms : 1_000_000 ,
30803082 labels : HashMap :: new ( ) ,
3083+ resource_version : 0 ,
30813084 } ) ,
30823085 spec : Some ( SandboxSpec {
30833086 policy : None ,
@@ -3112,6 +3115,7 @@ mod tests {
31123115 name : name. to_string ( ) ,
31133116 created_at_ms : 1_000_000 ,
31143117 labels : HashMap :: new ( ) ,
3118+ resource_version : 0 ,
31153119 } ) ,
31163120 spec : Some ( SandboxSpec {
31173121 policy : None ,
@@ -3146,6 +3150,7 @@ mod tests {
31463150 name : "x" . to_string ( ) ,
31473151 created_at_ms : 1_000_000 ,
31483152 labels : HashMap :: new ( ) ,
3153+ resource_version : 0 ,
31493154 } ) ,
31503155 spec : Some ( SandboxSpec {
31513156 policy : None ,
You can’t perform that action at this time.
0 commit comments