Repository: golemfactory/yagna (language: python)

Issue:
uncomment respawn proposal feature
Why:
- to allow requestor to negotiatie with single provider multiple times

What:
- uncomment already existing feature


Discussion / hints:

Fix patch:
diff --git a/core/market/src/negotiation/common.rs b/core/market/src/negotiation/common.rs
index a0d4a77dcb..64c45c070f 100644
--- a/core/market/src/negotiation/common.rs
+++ b/core/market/src/negotiation/common.rs
@@ -394,18 +394,18 @@ impl CommonBroker {
         // provider for the second time, so we must generate new Proposal for him.
         // Note: Regeneration failure isn't propagated to Requestor, because termination
         // succeeded at this point.
-        // if let Owner::Requestor = agreement.id.owner() {
-        //     self.regenerate_proposal(&agreement)
-        //         .await
-        //         .map_err(|e| {
-        //             log::warn!(
-        //                 "Failed to regenerate Proposal after Agreement [{}] termination. {}",
-        //                 &agreement.id,
-        //                 e
-        //             )
-        //         })
-        //         .ok();
-        // }
+        if let Owner::Requestor = agreement.id.owner() {
+            self.regenerate_proposal(&agreement)
+                .await
+                .map_err(|e| {
+                    log::warn!(
+                        "Failed to regenerate Proposal after Agreement [{}] termination. {}",
+                        &agreement.id,
+                        e
+                    )
+                })
+                .ok();
+        }
         Ok(())
     }
 


Test patch:
diff --git a/goth_tests/helpers/activity.py b/goth_tests/helpers/activity.py
index f6c1922817..e36fda9fe2 100644
--- a/goth_tests/helpers/activity.py
+++ b/goth_tests/helpers/activity.py
@@ -7,14 +7,14 @@
 
 
 wasi_task_package: str = (
-        "hash://sha3:d5e31b2eed628572a5898bf8c34447644bfc4b5130cfc1e4f10aeaa1:"
-        "http://yacn2.dev.golem.network:8000/rust-wasi-tutorial.zip"
-    )
+    "hash://sha3:d5e31b2eed628572a5898bf8c34447644bfc4b5130cfc1e4f10aeaa1:"
+    "http://yacn2.dev.golem.network:8000/rust-wasi-tutorial.zip"
+)
 
 vm_task_package: str = (
-        "hash:sha3:9a3b5d67b0b27746283cb5f287c13eab1beaa12d92a9f536b747c7ae:"
-        "http://yacn2.dev.golem.network:8000/local-image-c76719083b.gvmi"
-    )
+    "hash:sha3:9a3b5d67b0b27746283cb5f287c13eab1beaa12d92a9f536b747c7ae:"
+    "http://yacn2.dev.golem.network:8000/local-image-c76719083b.gvmi"
+)
 
 
 def vm_exe_script(runner: Runner, output_file: str = "output.png"):