Skip to content

Commit

Permalink
explicitly sync writes to files in the test; likely necessary on some…
Browse files Browse the repository at this point in the history
… systems for changes to be detected properly
  • Loading branch information
jebrosen committed Jul 12, 2018
1 parent 75ce321 commit ddc37e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/lib/tests/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ mod templates_tests {
fn write_file(path: &Path, text: &str) {
let mut file = File::create(path).expect("open file");
file.write_all(text.as_bytes()).expect("write file");
file.sync_all().expect("sync file");
}

const RELOAD_TEMPLATE: &'static str = "hbs/reload";
Expand Down

0 comments on commit ddc37e7

Please sign in to comment.