-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: batch send-event tests (#2230)
- Loading branch information
1 parent
372adeb
commit 693d621
Showing
2 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} |