From af72f505af28c4c4a6543c4a416c942abf383559 Mon Sep 17 00:00:00 2001 From: Manolis Liolios Date: Wed, 28 Aug 2024 16:51:05 +0300 Subject: [PATCH 1/2] Wait for 1st checkpoint so we know we have a healthy gql service --- crates/sui-graphql-rpc/tests/e2e_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/sui-graphql-rpc/tests/e2e_tests.rs b/crates/sui-graphql-rpc/tests/e2e_tests.rs index e42072d8e28b8..c2ea7333c4968 100644 --- a/crates/sui-graphql-rpc/tests/e2e_tests.rs +++ b/crates/sui-graphql-rpc/tests/e2e_tests.rs @@ -901,7 +901,7 @@ mod tests { sui_graphql_rpc::test_infra::cluster::start_cluster(connection_config, None).await; cluster - .wait_for_checkpoint_catchup(0, Duration::from_secs(10)) + .wait_for_checkpoint_catchup(1, Duration::from_secs(10)) .await; test_health_check_impl().await; cluster.cleanup_resources().await From f256a1c83769ac2066a966247abacb804910fa7e Mon Sep 17 00:00:00 2001 From: Manolis Liolios Date: Wed, 28 Aug 2024 17:35:46 +0300 Subject: [PATCH 2/2] Add comment for future ref --- crates/sui-graphql-rpc/tests/e2e_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/sui-graphql-rpc/tests/e2e_tests.rs b/crates/sui-graphql-rpc/tests/e2e_tests.rs index c2ea7333c4968..1566bfa93d0c4 100644 --- a/crates/sui-graphql-rpc/tests/e2e_tests.rs +++ b/crates/sui-graphql-rpc/tests/e2e_tests.rs @@ -900,6 +900,8 @@ mod tests { let cluster = sui_graphql_rpc::test_infra::cluster::start_cluster(connection_config, None).await; + // We wait until checkpoint 1 is indexed, to give enough time to the + // watermark task to pick up a valid checkpoint timestamp. cluster .wait_for_checkpoint_catchup(1, Duration::from_secs(10)) .await;