Skip to content

Commit 1ab5d35

Browse files
committed
Remove Scheduler.log from ReactSuspenseFuzz-test (#28812)
These test don't `assertLog` or `waitFor` so we don't need to `Scheduler.log`. Ideally we would, but since they're fuzzers it's a bit difficult to know what the expected log is from the helper. Since this doesn't regress current test behavior, we can improve them after this to unblock #28737
1 parent 39d0c82 commit 1ab5d35

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/react-reconciler/src/__tests__/ReactSuspenseFuzz-test.internal.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,19 @@ describe('ReactSuspenseFuzz', () => {
115115
setTimeout(() => {
116116
cache.set(fullText, fullText);
117117
pendingTasks.delete(task);
118-
Scheduler.log(task.label);
119118
resolve();
120119
}, delay);
121120
},
122121
};
123122
cache.set(fullText, thenable);
124-
Scheduler.log(`Suspended! [${fullText}]`);
125123
throw thenable;
126124
} else if (typeof resolvedText.then === 'function') {
127-
const thenable = resolvedText;
128-
Scheduler.log(`Suspended! [${fullText}]`);
129-
throw thenable;
125+
throw resolvedText;
130126
}
131127
} else {
132128
resolvedText = fullText;
133129
}
134130

135-
Scheduler.log(resolvedText);
136131
return resolvedText;
137132
}
138133

0 commit comments

Comments
 (0)