Skip to content

Commit

Permalink
Fix unit test for CaptureBytes (#134)
Browse files Browse the repository at this point in the history
I used to the wrong test function - I should have been testing there was
no change on upstream, not on downstream.
  • Loading branch information
markmandel authored Nov 14, 2020
1 parent 4c2f06f commit 625d2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/filters/capture_bytes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ mod tests {
use serde_yaml::{Mapping, Value};

use crate::config::{ConnectionConfig, EndPoint};
use crate::test_utils::{assert_filter_on_downstream_receive_no_change, logger};
use crate::test_utils::{assert_filter_on_upstream_receive_no_change, logger};

use super::*;

Expand Down Expand Up @@ -305,7 +305,7 @@ mod tests {
remove: false,
};
let filter = capture_bytes(config);
assert_filter_on_downstream_receive_no_change(&filter);
assert_filter_on_upstream_receive_no_change(&filter);
}

#[test]
Expand Down

0 comments on commit 625d2ce

Please sign in to comment.