A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(smoke): address postgres default behaviour (#1417)
Jiralitecc661cf01049
diff --git a/tools/dev/src/smoke.rs b/tools/dev/src/smoke.rsindex e356db27f..d288aafcc 100644--- a/tools/dev/src/smoke.rs+++ b/tools/dev/src/smoke.rs@@ -80,7 +80,9 @@ pub async fn run_smoke(quick: bool, public: bool) -> Result<()> {.await?;wait_s3_api(timeout).await?;if !quick {- verify_schema(None, None).await?;+ if cassandra_backend_enabled() {+ verify_schema(None, None).await?;+ }check_s3_buckets()?;check_config_load()?;}@@ -385,10 +387,16 @@ async fn check_gateway_internal_rpc() -> Result<()> {}pub async fn bootstrap_schema_and_object_store() -> Result<()> {- apply_schema(Some(config_from_env()?)).await?;+ if cassandra_backend_enabled() {+ apply_schema(Some(config_from_env()?)).await?;+ }ensure_s3_buckets()}+fn cassandra_backend_enabled() -> bool {+ env::var("FLUXER_DATABASE_BACKEND").as_deref() == Ok("cassandra")+}+pub async fn http_ok(url: &str) -> bool {reqwest::Client::new().get(url)