Skip to content

Commit 3e053c7

Browse files
committed
fix: start tests execution only when the appropriate message is received
1 parent 359059b commit 3e053c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/services/test-execution-service.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ export class TestExecutionService implements ITestExecutionService {
124124
await this.$liveSyncService.liveSync(deviceDescriptors, liveSyncInfo);
125125
};
126126

127-
karmaRunner.on("message", (karmaData: any) => {
127+
karmaRunner.on("message", (karmaData: any) => {
128+
this.$logger.trace(`The received message from karma is: `, karmaData);
129+
if (!karmaData.launcherConfig && !karmaData.url) {
130+
return;
131+
}
132+
128133
launchKarmaTests(karmaData)
129134
.catch((result) => {
130135
this.$logger.error(result);

0 commit comments

Comments
 (0)