Skip to content

Commit

Permalink
chore: disable old version history test (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy authored Jun 4, 2024
1 parent 6bb2a20 commit 56b5c4c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ APPFLOWY_AI_SERVER_HOST=ai
APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres

# AppFlowy History
APPFLOWY_HISTORY_URL=http://history:50051
APPFLOWY_HISTORY_URL=http://localhost:50051
APPFLOWY_HISTORY_REDIS_URL=redis://redis:6379
APPFLOWY_HISTORY_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres

Expand Down
2 changes: 1 addition & 1 deletion dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ APPFLOWY_AI_SERVER_HOST=localhost
APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres

# AppFlowy History
APPFLOWY_HISTORY_URL=http://history:50051
APPFLOWY_HISTORY_URL=http://localhost:50051
APPFLOWY_HISTORY_REDIS_URL=redis://redis:6379
APPFLOWY_HISTORY_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres

Expand Down
5 changes: 4 additions & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ pub async fn init_state(config: &Config, rt_cmd_tx: CLCommandSender) -> Result<A
metrics.collab_metrics.clone(),
));

info!("Connecting to history server");
info!(
"Connecting to history server: {}",
config.grpc_history.addrs
);
let channel = tonic::transport::Channel::from_shared(config.grpc_history.addrs.clone())?
.keep_alive_timeout(Duration::from_secs(20))
.keep_alive_while_idle(true)
Expand Down
2 changes: 1 addition & 1 deletion tests/ai_test/summarize_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ async fn summarize_row_test() {
};

let resp = test_client.api_client.summarize_row(params).await.unwrap();
assert!(resp.text.contains("Jack"));
assert!(!resp.text.is_empty());
}
2 changes: 1 addition & 1 deletion tests/collab_history/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod document_history;
// mod document_history;

0 comments on commit 56b5c4c

Please sign in to comment.