diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2022-01-15 10:21:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 04:21:38 -0500 |
commit | 0fd6f05da430c38e420642ff90963470312eef69 (patch) | |
tree | 65a296287be9573089624e3e1c821d5c2efaa49d /src/test | |
parent | 8985499c958cab961914286308f46e1622ceb038 (diff) |
fix(properties): fix regressions in `status`, `pipestatus` and `terminal-width` handling (#3399)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index b0a32e333..1a47d1dad 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -123,7 +123,7 @@ impl<'a> ModuleRenderer<'a> { } pub fn status(mut self, status: i32) -> Self { - self.context.properties.status_code = Some(status); + self.context.properties.status_code = Some(status.to_string()); self } @@ -137,7 +137,7 @@ impl<'a> ModuleRenderer<'a> { } pub fn pipestatus(mut self, status: &[i32]) -> Self { - self.context.pipestatus = Some( + self.context.properties.pipestatus = Some( status .iter() .map(std::string::ToString::to_string) |