Skip to content

Commit

Permalink
Merge branch 'tomas/expectrl-switch-from-fork' (#265)
Browse files Browse the repository at this point in the history
* tomas/expectrl-switch-from-fork:
  changelog: add #1142
  switch from a fork to expectrl v0.5.2
  • Loading branch information
tzemanovic committed Aug 4, 2022
2 parents ae00c72 + ae99410 commit 8090d99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Switch back from a fork to a newly released version of expectrl
([#1142](https://github.com/anoma/anoma/pull/1142))
5 changes: 3 additions & 2 deletions 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 tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ borsh = "0.9.1"
color-eyre = "0.5.11"
# NOTE: enable "print" feature to see output from builds ran by e2e tests
escargot = {version = "0.5.7"} # , features = ["print"]}
expectrl = {git = "https://github.com/heliaxdev/expectrl.git", branch = "tomas/expect-eager-2"}
expectrl = {version = "=0.5.2"}
eyre = "0.6.5"
file-serve = "0.2.0"
fs_extra = "1.2.0"
Expand Down
6 changes: 3 additions & 3 deletions tests/src/e2e/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ impl AnomaCmd {
/// Wrapper over the inner `PtySession`'s functions with custom error
/// reporting.
pub fn exp_string(&mut self, needle: &str) -> Result<String> {
let found = self.session.expect_eager(needle).map_err(|e| {
let found = self.session.expect(needle).map_err(|e| {
eyre!("{}\nCommand: {}\n Needle: {}", e, self, needle)
})?;
if found.is_empty() {
Expand All @@ -528,7 +528,7 @@ impl AnomaCmd {
pub fn exp_regex(&mut self, regex: &str) -> Result<(String, String)> {
let found = self
.session
.expect_eager(expectrl::Regex(regex))
.expect(expectrl::Regex(regex))
.map_err(|e| eyre!("Error: {}\nCommand: {}", e, self))?;
if found.is_empty() {
Err(eyre!(
Expand All @@ -555,7 +555,7 @@ impl AnomaCmd {
pub fn exp_eof(&mut self) -> Result<String> {
let found = self
.session
.expect_eager(Eof)
.expect(Eof)
.map_err(|e| eyre!("Error: {}\nCommand: {}", e, self))?;
if found.is_empty() {
Err(eyre!("Expected EOF\nCommand: {}", self))
Expand Down

0 comments on commit 8090d99

Please sign in to comment.