Skip to content

Commit 950c492

Browse files
committed
Fix test.
1 parent 2550695 commit 950c492

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export async function createCLI() {
202202
const jobDuration = options.maxJobDuration || maxJobDuration;
203203
const token = options.token || paymentToken;
204204
const res = options.resources || resources;
205-
console.log(`proceed: `, options.yes);
205+
console.log(`proceed: `, options.accept);
206206
if (!dsDids || !aDid ||!envId || !jobDuration || !token || !res) {
207207
console.error(chalk.red('Missing required arguments'));
208208
// process.exit(1);

test/paidComputeFlow.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ describe("Ocean CLI Paid Compute", function() {
187187
throw new Error("Could not find Agreement ID in the output");
188188
}
189189

190-
expect(computeJobId).to.be.a("string");
191-
expect(agreementId).to.be.a("string");
192-
193190
computeJobId = jobIdMatch[1];
194191
agreementId = agreementIdMatch[1];
195192

193+
expect(computeJobId).to.be.a("string");
194+
expect(agreementId).to.be.a("string");
195+
196196
console.log(`jobId: ${computeJobId}`);
197197
console.log(`agreementId: ${agreementId}`);
198198

0 commit comments

Comments
 (0)