Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
  • Loading branch information
BulkBeing committed Feb 27, 2024
1 parent 8c0d560 commit e24c58c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl<T> Server<T> {

#[cfg(test)]
mod tests {
use super::sourcer;
use chrono::Utc;
use std::vec;
use std::{error::Error, time::Duration};
Expand Down Expand Up @@ -406,8 +407,7 @@ mod tests {

let resp = client.read_fn(request).await?;
let resp = resp.into_inner();
use super::sourcer::read_response::Result;
let result: Vec<Result> = resp
let result: Vec<sourcer::read_response::Result> = resp
.map(|item| item.unwrap().result.unwrap())
.collect()
.await;
Expand Down Expand Up @@ -439,7 +439,6 @@ mod tests {
.iter()
.map(|item| item.clone().offset.unwrap())
.collect();
use super::sourcer;
let ack_request = tonic::Request::new(sourcer::AckRequest {
request: Some(sourcer::ack_request::Request {
offsets: offsets_to_ack,
Expand Down Expand Up @@ -470,7 +469,7 @@ mod tests {
assert_eq!(
partitions.result.unwrap().partitions,
vec![2],
"Expected number of partitios to be 3"
"Expected number of partitions to be 2"
);

shutdown_tx
Expand Down

0 comments on commit e24c58c

Please sign in to comment.