Skip to content

Commit 4e732ae

Browse files
committed
fix: satisfy xctest agent test lint rule
1 parent 5becc03 commit 4e732ae

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

packages/platform-ios/src/__tests__/xctest-agent.test.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,16 @@ const createLongRunningSubprocess = (options?: {
105105

106106
const iterable = {
107107
nodeChildProcess: Promise.resolve(childProcess),
108-
async *[Symbol.asyncIterator]() {
109-
while (!stopped) {
110-
await new Promise((resolve) => setTimeout(resolve, 0));
111-
}
108+
[Symbol.asyncIterator]() {
109+
return {
110+
next: async () => {
111+
while (!stopped) {
112+
await new Promise((resolve) => setTimeout(resolve, 0));
113+
}
114+
115+
return { done: true, value: undefined };
116+
},
117+
};
112118
},
113119
};
114120

0 commit comments

Comments
 (0)