Skip to content

Commit

Permalink
fix: clippy and test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd committed Nov 7, 2023
1 parent 9bad958 commit c896538
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions operator/src/simulation/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async fn reconcile(
run_time: spec.run_time.to_owned(),
nonce: status.nonce,
job_image_config: job_image_config.clone(),
throttle_requests: spec.throttle_requests.clone(),
throttle_requests: spec.throttle_requests,
};

apply_manager(cx.clone(), &ns, simulation.clone(), manager_config).await?;
Expand Down Expand Up @@ -787,23 +787,13 @@ mod tests {
let (testctx, api_handle) = Context::test(mock_rpc_client);
let fakeserver = ApiServerVerifier::new(api_handle);
let simulation = Simulation::test().with_spec(SimulationSpec {
scenario: "test-scenario".to_owned(),
throttle_requests: Some(100),
..Default::default()
});
let mut stub = Stub::default();
stub.manager_job.patch(expect![[r#"
--- original
+++ modified
@@ -41,7 +41,7 @@
},
{
"name": "SIMULATE_SCENARIO",
- "value": ""
+ "value": "test-scenario"
},
{
"name": "SIMULATE_MANAGER",
@@ -74,6 +74,10 @@
{
"name": "DID_PRIVATE_KEY",
Expand Down

0 comments on commit c896538

Please sign in to comment.