Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #185 from thomastaylor312/chore/bump_patch
Browse files Browse the repository at this point in the history
chore(*): Bumps version to 0.6.6
  • Loading branch information
thomastaylor312 authored Sep 28, 2021
2 parents 9684740 + 315c808 commit 7200cee
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wash-cli"
version = "0.6.5"
version = "0.6.6"
authors = ["wasmCloud Team"]
edition = "2018"
repository = "https://github.com/wasmcloud/wash"
Expand Down
2 changes: 1 addition & 1 deletion src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ mod test {
assert_eq!(data, Some(PathBuf::from(DATA_FNAME)));
assert_eq!(save, Some(PathBuf::from(SAVE_FNAME)));
assert_eq!(cluster_seed, "SCASDASDASD");
assert_eq!(test, true);
assert!(test);
assert_eq!(bin, '2');
assert_eq!(actor_id, ACTOR_ID);
assert_eq!(operation, "HandleOperation");
Expand Down
11 changes: 5 additions & 6 deletions src/generate/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,8 @@ mod test {
};

let matcher = Matcher::new("/target", &template_config).unwrap();

assert_eq!(matcher.should_include(&PathBuf::from("a.txt")), false);
assert_eq!(matcher.should_include(&PathBuf::from("a.txt.html")), true);
assert!(!matcher.should_include(&PathBuf::from("a.txt")));
assert!(matcher.should_include(&PathBuf::from("a.txt.html")));
}

#[test]
Expand All @@ -263,8 +262,8 @@ mod test {

let matcher = Matcher::new("/target", &template_config).unwrap();

assert_eq!(matcher.is_raw(&PathBuf::from("a.bin")), true);
assert_eq!(matcher.is_raw(&PathBuf::from("x.bin")), true);
assert_eq!(matcher.is_raw(&PathBuf::from("b.dat")), true);
assert!(matcher.is_raw(&PathBuf::from("a.bin")));
assert!(matcher.is_raw(&PathBuf::from("x.bin")));
assert!(matcher.is_raw(&PathBuf::from("b.dat")));
}
}
6 changes: 5 additions & 1 deletion tests/integration_drain.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
mod common;
use common::{output_to_string, test_dir_file, test_dir_with_subfolder, wash};
use std::fs::{create_dir_all, remove_dir_all, File};
#[cfg(any(target_os = "linux", target_os = "macos"))]
use std::fs::create_dir_all;
use std::fs::{remove_dir_all, File};
use std::io::prelude::*;
#[cfg(any(target_os = "linux", target_os = "macos"))]
use std::path::PathBuf;

const LIB: &str = "wasmcloudcache";
Expand Down Expand Up @@ -151,6 +154,7 @@ fn integration_drain_all() {
remove_dir_all(test_dir).unwrap();
}

#[cfg(any(target_os = "linux", target_os = "macos"))]
fn path_to_test_file(smithy_cache_dir: &str) -> PathBuf {
PathBuf::from(&format!("{}/junk.txt", &smithy_cache_dir))
}
Expand Down

0 comments on commit 7200cee

Please sign in to comment.