Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Sep 7, 2024
1 parent f7bed0b commit 7cf5189
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions relay-server/src/services/buffer/envelope_stack/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ mod tests {
1,
ProjectKey::parse("a94ae32be2584e0bbd7a4cbb95971fee").unwrap(),
ProjectKey::parse("b81ae32be2584e0bbd7a4cbb95971fe1").unwrap(),
true,
);

let envelopes = mock_envelopes(5);
Expand Down
1 change: 1 addition & 0 deletions relay-server/src/services/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ impl EnvelopeBufferService {
}

async fn handle_shutdown(&mut self, buffer: PolymorphicEnvelopeBuffer, message: Shutdown) {
// We gracefully shut down only if the shutdown has a timeout.
if let Some(shutdown_timeout) = message.timeout {
let shutdown_result = timeout(shutdown_timeout, async {
buffer.shutdown().await;
Expand Down
3 changes: 1 addition & 2 deletions relay-server/src/services/processor/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,7 @@ mod tests {

let event = Annotated::new(Event {
release: Annotated::new(
String::from("���7��#1G����7��#1G����7��#1G����7��#1G����7��#")
.into(),
String::from("���7��#1G����7��#1G����7��#1G����7��#1G����7��#").into(),
),
..Default::default()
});
Expand Down

0 comments on commit 7cf5189

Please sign in to comment.