Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cleaning of terminated agreements #724

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions tests/e2e/tasks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,7 @@ describe("Task Executor", function () {
expect(logger.logs).not.toContain("Trying to redo the task");
});

/**
* TODO:
* For the test to work properly, the midAgreementDebitNoteIntervalSec parameter (which is in the beta version) is needed, so we temporarily skip this test
*/
it.skip("should clean up the agreements in the pool if the agreement has been terminated by provider", async () => {
it("should clean up the agreements in the pool if the agreement has been terminated by provider", async () => {
const eventTarget = new EventTarget();
const executor = await TaskExecutor.create({
package: "golem/alpine:latest",
Expand All @@ -237,6 +233,7 @@ describe("Task Executor", function () {
debitNotesFilter: () => Promise.resolve(false),
debitNotesAcceptanceTimeoutSec: 10,
midAgreementPaymentTimeoutSec: 10,
midAgreementDebitNoteIntervalSec: 10,
});
let createdAgreementsCount = 0;
eventTarget.addEventListener(EVENT_TYPE, (event) => {
Expand Down
Loading