Skip to content

Commit

Permalink
test: batch send-event tests (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
szokeasaurusrex authored Nov 13, 2024
1 parent 372adeb commit 693d621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions tests/integration/send_event.rs
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
use crate::integration::{self, EndpointOptions};

#[test]
fn command_send_event_help() {
integration::register_test("send_event/send_event-help.trycmd");
}

// I have no idea why this is timing out on Windows.
// I verified it manually, and this command works just fine. — Kamil
// TODO: Fix windows timeout.
#[cfg(not(windows))]
#[test]
fn command_send_event_raw() {
fn command_send_event_not_windows() {
let _server =
integration::mock_endpoint(EndpointOptions::new("POST", "/api/1337/envelope/", 200));
integration::register_test("send_event/send_event-raw.trycmd");
integration::register_test("send_event/not_windows/*.trycmd");
}

#[test]
fn command_send_event_file() {
fn command_send_event() {
let _server =
integration::mock_endpoint(EndpointOptions::new("POST", "/api/1337/envelope/", 200));
integration::register_test("send_event/send_event-file.trycmd");
}

#[test]
fn command_send_event_raw_fail() {
integration::register_test("send_event/send_event-raw-fail.trycmd");
integration::register_test("send_event/*.trycmd");
}

0 comments on commit 693d621

Please sign in to comment.