Skip to content

Commit

Permalink
Refactor event rule tests - use a dedicated subdirectory for JSON tes…
Browse files Browse the repository at this point in the history
…t data
  • Loading branch information
ndebuhr committed Feb 23, 2022
1 parent 6d9b1bf commit c9aef35
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions sim/tests/event_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn strip_whitespace(string: String) -> String {
fn batcher_event_rules() {
let batcher = Batcher::new(String::from("job"), String::from("job"), 0.5, 10, false);

let batcher_event_rules = fs::read_to_string("tests/batcher_event_rules.json")
let batcher_event_rules = fs::read_to_string("tests/data/batcher_event_rules.json")
.expect("Unable to read tests/batcher_event_rules.json");

assert_eq!(
Expand All @@ -35,7 +35,7 @@ fn generator_event_rules() {
false,
);

let generator_event_rules = fs::read_to_string("tests/generator_event_rules.json")
let generator_event_rules = fs::read_to_string("tests/data/generator_event_rules.json")
.expect("Unable to read tests/generator_event_rules.json");

assert_eq!(
Expand Down

0 comments on commit c9aef35

Please sign in to comment.