Skip to content

Commit

Permalink
fix: integration_tests bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
royalpinto007 committed Jan 3, 2024
1 parent cf1703b commit 94095f1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/src/coffee_integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub async fn init_coffee_test_add_remote() {
.unwrap();
manager
.coffee()
.install("summary", true, true)
.install("summary", true, true, None)
.await
.unwrap();

Expand Down Expand Up @@ -167,13 +167,13 @@ pub async fn test_add_remove_plugins() {
);

// Install summary plugin
let result = manager.coffee().install("summary", true, false).await;
let result = manager.coffee().install("summary", true, false, None).await;
assert!(result.is_ok(), "{:?}", result);

// Install helpme plugin
manager
.coffee()
.install("helpme", true, false)
.install("helpme", true, false, None)
.await
.unwrap();

Expand Down Expand Up @@ -276,7 +276,7 @@ pub async fn test_errors_and_show() {
);

// Install summary plugin
let result = manager.coffee().install("summary", true, false).await;
let result = manager.coffee().install("summary", true, false, None).await;
assert!(result.is_ok(), "{:?}", result);

// Get the README file for a plugin that is not installed
Expand All @@ -285,7 +285,7 @@ pub async fn test_errors_and_show() {
assert!(val.starts_with("# Helpme plugin"));

// Install a plugin that is not in the repository
let result = manager.coffee().install("x", true, false).await;
let result = manager.coffee().install("x", true, false, None).await;
assert!(result.is_err(), "{:?}", result);

// Remove helpme plugin
Expand Down Expand Up @@ -353,7 +353,7 @@ pub async fn install_plugin_in_two_networks() -> anyhow::Result<()> {
// This should install summary plugin for regtest network
manager
.coffee()
.install("summary", true, true)
.install("summary", true, true, None)
.await
.unwrap();
// Ensure that summary is installed for regtest network
Expand Down Expand Up @@ -393,7 +393,7 @@ pub async fn install_plugin_in_two_networks() -> anyhow::Result<()> {
// This should install summary plugin for testnet network
manager
.coffee()
.install("summary", true, true)
.install("summary", true, true, None)
.await
.unwrap();
// Ensure that summary is installed for testnet network
Expand Down Expand Up @@ -428,13 +428,13 @@ pub async fn test_double_slash() {
.unwrap();

// Install summary plugin
let result = manager.coffee().install("summary", true, false).await;
let result = manager.coffee().install("summary", true, false, None).await;
assert!(result.is_ok(), "{:?}", result);

// Install helpme plugin
manager
.coffee()
.install("helpme", true, false)
.install("helpme", true, false, None)
.await
.unwrap();

Expand Down Expand Up @@ -493,7 +493,7 @@ pub async fn test_plugin_installation_path() {
// Install summary plugin for regtest network
manager
.coffee()
.install("summary", true, false)
.install("summary", true, false, None)
.await
.unwrap();

Expand Down

0 comments on commit 94095f1

Please sign in to comment.