Skip to content

Commit

Permalink
Merge pull request #2047 from vdice/fix/integration-test-plugin-output
Browse files Browse the repository at this point in the history
fix(tests/integration): update plugin output assertion
  • Loading branch information
vdice authored Nov 7, 2023
2 parents 7b04f2f + 4678877 commit 61217c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,9 @@ route = "/..."
let output = run(execute_args, None, Some(env_map.clone()))?;

// Verify plugin successfully wrote to output file
assert_eq!(
std::str::from_utf8(&output.stdout)?.trim(),
"This is an example Spin plugin!"
);
assert!(std::str::from_utf8(&output.stdout)?
.trim()
.contains("This is an example Spin plugin!"));

// Upgrade plugin to newer version
*plugin_manifest_json.get_mut("version").unwrap() = serde_json::json!("0.2.1");
Expand Down

0 comments on commit 61217c2

Please sign in to comment.