Skip to content

Commit f9faa51

Browse files
test: fix test
1 parent f785628 commit f9faa51

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

dapp/src/executeTask.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ async function processProtectedData({
2828
index > 0
2929
? process.env[`IEXEC_DATASET_${index}_FILENAME`]
3030
: process.env.IEXEC_DATASET_FILENAME;
31-
const result = { index, protectedData: datasetFilename };
31+
const result = {
32+
index,
33+
protectedData: datasetFilename,
34+
isEmailValid: undefined,
35+
};
3236
try {
3337
let protectedData;
3438
try {
@@ -161,6 +165,7 @@ async function start() {
161165
results: results.map((r) => ({
162166
index: r.index,
163167
protectedData: r.protectedData,
168+
// isEmailValid: r.isEmailValid,
164169
success: r.success,
165170
error: r.error,
166171
})),

dapp/tests/e2e/app.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,10 @@ describe('sendEmail', () => {
651651
it('should set the invalid email callback when requested', async () => {
652652
// protected data setup
653653
process.env.IEXEC_DATASET_FILENAME = 'dataEmailUserDoesNotExist.zip';
654+
process.env.IEXEC_REQUESTER_SECRET_1 = JSON.stringify({
655+
...JSON.parse(process.env.IEXEC_REQUESTER_SECRET_1),
656+
useCallback: true,
657+
});
654658

655659
await expect(start()).resolves.toBeUndefined();
656660

0 commit comments

Comments
 (0)