Skip to content

Commit

Permalink
fix: side-effect in test
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Nov 27, 2024
1 parent 2b395c1 commit 5593ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/handlers/http/logstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ pub async fn get_stats(req: HttpRequest) -> Result<impl Responder, StreamError>
// For query mode, if the stream not found in memory map,
//check if it exists in the storage
//create stream and schema from storage
if CONFIG.parseable.mode == Mode::Query {
if cfg!(not(test)) && CONFIG.parseable.mode == Mode::Query {
match create_stream_and_schema_from_storage(&stream_name).await {
Ok(true) => {}
Ok(false) | Err(_) => return Err(StreamError::StreamNotFound(stream_name.clone())),
Expand Down

0 comments on commit 5593ed8

Please sign in to comment.