Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: niebayes <[email protected]>
  • Loading branch information
WenyXu and niebayes committed Jan 6, 2024
1 parent 38b90a3 commit 865afc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/log-store/src/kafka/util/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ mod tests {
use super::*;
use crate::kafka::client_manager::ClientManager;
use crate::kafka::util::test_util::run_test_with_kafka_wal;

// Implements some utility methods for testing.
impl Default for Record {
fn default() -> Self {
Expand Down
5 changes: 2 additions & 3 deletions src/log-store/src/kafka/util/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ pub async fn run_test_with_kafka_wal<F>(test: F)
where
F: FnOnce(Vec<String>) -> BoxFuture<'static, ()>,
{
let endpoints = env::var("GT_KAFKA_ENDPOINTS").unwrap_or_default();
if endpoints.is_empty() {
let Ok(endpoints) = env::var("GT_KAFKA_ENDPOINTS") else {
warn!("The endpoints is empty, skipping the test");
return;
}
};

let endpoints = endpoints
.split(',')
Expand Down

0 comments on commit 865afc6

Please sign in to comment.