Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: green #482

Merged
merged 3 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions deployer/src/deployment/deploy_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ mod tests {
};

select! {
_ = sleep(Duration::from_secs(120)) => {
_ = sleep(Duration::from_secs(180)) => {
panic!("states should go into 'Running' for a valid service");
}
_ = test => {}
Expand Down Expand Up @@ -710,7 +710,7 @@ mod tests {
};

select! {
_ = sleep(Duration::from_secs(120)) => {
_ = sleep(Duration::from_secs(180)) => {
panic!("states should go into 'Completed' when a service stops by itself");
}
_ = test => {}
Expand Down Expand Up @@ -790,7 +790,7 @@ mod tests {
};

select! {
_ = sleep(Duration::from_secs(120)) => {
_ = sleep(Duration::from_secs(180)) => {
panic!("states should go into 'Crashed' panicing in bind");
}
_ = test => {}
Expand Down Expand Up @@ -865,7 +865,7 @@ mod tests {
};

select! {
_ = sleep(Duration::from_secs(120)) => {
_ = sleep(Duration::from_secs(180)) => {
panic!("states should go into 'Crashed' when panicing in main");
}
_ = test => {}
Expand Down
11 changes: 3 additions & 8 deletions deployer/src/persistence/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,9 @@ fn extract_message(fields: &Value) -> Option<String> {
return Some(message.as_str()?.to_string());
}

if let Some(message) = map.get("message") {
match message {
Value::Object(message_object) => {
if let Some(rendered) = message_object.get("rendered") {
return Some(rendered.as_str()?.to_string());
}
}
_ => {}
if let Some(Value::Object(message_object)) = map.get("message") {
if let Some(rendered) = message_object.get("rendered") {
return Some(rendered.as_str()?.to_string());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/persist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["shuttle-service", "persistence"]
async-trait = "0.1.56"
bincode = "1.2.1"
serde = { version = "1.0.0", features = ["derive"] }
shuttle-common = { path = "../../common", version = "0.7.2" }
shuttle-common = { path = "../../common", version = "0.7.2", default-features = false }
shuttle-service = { path = "../../service", version = "0.7.2", default-features = false }
thiserror = "1.0.32"
tokio = { version = "1.19.2", features = ["rt"] }