فهرست منبع

Integration tests: Run CLI tests after workerPayoutsJob

Leszek Wiesner 3 سال پیش
والد
کامیت
43ff087568
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      tests/network-tests/src/scenarios/combined.ts

+ 7 - 2
tests/network-tests/src/scenarios/combined.ts

@@ -26,7 +26,11 @@ scenario(async ({ job }) => {
   job('at least value bug', atLeastValueBug).requires(leadSetupJob)
 
   // tests minting payouts (requires council to set mint capacity)
-  job('worker payouts', [workerPayout.storage, workerPayout.content, workerPayout.distribution]).requires(leadSetupJob)
+  const workerPayoutsJob = job('worker payouts', [
+    workerPayout.storage,
+    workerPayout.content,
+    workerPayout.distribution,
+  ]).requires(leadSetupJob)
 
   job('working group tests', [
     manageWorkerFlow(WorkingGroups.Storage),
@@ -37,7 +41,8 @@ scenario(async ({ job }) => {
     manageWorkerAsWorker.distribution,
   ]).requires(leadSetupJob)
 
-  const createChannelJob = job('create channel via CLI', createChannel)
+  // Run CLI tests after workerPayoutsJob as they may lock Sender for too long and cause FillOpeningInvalidNextPaymentBlock
+  const createChannelJob = job('create channel via CLI', createChannel).after(workerPayoutsJob)
   job('init storage and distribution buckets via CLI', [initDistributionBucket, initStorageBucket]).after(
     createChannelJob
   )