Skip to content

Commit

Permalink
Ignore the really long network test by default for quicker development
Browse files Browse the repository at this point in the history
  • Loading branch information
Bathtor committed Apr 24, 2020
1 parent 81ac468 commit dcf616f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ slog-term = "2"
fxhash = "0.2.1"
fnv = "1.0"
hocon = {version = "0.3", default-features = false}
hierarchical_hash_wheel_timer = "1.0.0"
hierarchical_hash_wheel_timer = "1.0"

# Optional
protobuf = {version = "2", optional = true, features = ["with-bytes"]}
Expand Down
1 change: 1 addition & 0 deletions core/src/dispatch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,7 @@ mod dispatch_tests {
/// Identical with `remote_lost_and_continued_connection` up to the final sleep time and assertion
/// system1 times out in its reconnection attempts and drops the enqueued buffers.
/// After indirectly asserting that the queue was dropped we start up a new pinger, and assert that it succeeds.
#[ignore]
fn remote_lost_and_dropped_connection() {
let system1 = || {
let mut cfg = KompactConfig::new();
Expand Down
12 changes: 3 additions & 9 deletions core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,7 @@ where
/// # Example
///
/// To ignore control events for a component `TestComponent`, write:
/// ```ignore
/// ignore_control!(TestComponent);
/// ```
/// `ignore_control!(TestComponent);`
#[macro_export]
macro_rules! ignore_control {
($component:ty) => {
Expand All @@ -285,9 +283,7 @@ macro_rules! ignore_control {
/// # Example
///
/// To ignore requests on a port `TestPort` for a component `TestComponent`, write:
/// ```ignore
/// ignore_requests!(TestPort, TestComponent);
/// ```
/// `ignore_requests!(TestPort, TestComponent);`
#[macro_export]
macro_rules! ignore_requests {
($port:ty, $component:ty) => {
Expand All @@ -307,9 +303,7 @@ macro_rules! ignore_requests {
/// # Example
///
/// To ignore indications on a port `TestPort` for a component `TestComponent`, write:
/// ```ignore
/// ignore_indications!(TestPort, TestComponent);
/// ```
/// `ignore_indications!(TestPort, TestComponent);`
#[macro_export]
macro_rules! ignore_indications {
($port:ty, $component:ty) => {
Expand Down
6 changes: 6 additions & 0 deletions core/test-feature-matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ set -o xtrace
set -e

cargo test
cargo test -- --ignored
cargo test --no-default-features --features ser_id_8
cargo test --no-default-features --features ser_id_8 -- --ignored
cargo test --no-default-features --features ser_id_16
cargo test --no-default-features --features ser_id_16 -- --ignored
cargo test --no-default-features --features ser_id_32
cargo test --no-default-features --features ser_id_32 -- --ignored
cargo test --features thread_pinning
cargo test --features thread_pinning -- --ignored
cargo test --features low_latency
cargo test --features low_latency -- --ignored

0 comments on commit dcf616f

Please sign in to comment.