Small improvements
This commit is contained in:
parent
19502cb967
commit
5624e51f52
4 changed files with 82 additions and 225 deletions
|
|
@ -42,7 +42,7 @@ function testUsesPauseServer(test: TestDefinition): boolean {
|
|||
*/
|
||||
function findProjectRoot(): string {
|
||||
let dir = path.dirname(__filename);
|
||||
const root = path.parse(dir).root;
|
||||
const {root} = path.parse(dir);
|
||||
while (dir !== root) {
|
||||
if (
|
||||
fs.existsSync(path.join(dir, "sync-server")) &&
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ export class DeterministicAgent extends debugging.InMemoryFileSystem {
|
|||
});
|
||||
}
|
||||
|
||||
const nextWriteRename = this.nextWriteRename;
|
||||
const { nextWriteRename } = this;
|
||||
if (
|
||||
nextWriteRename !== undefined &&
|
||||
nextWriteRename.oldPath === path
|
||||
|
|
|
|||
|
|
@ -239,8 +239,7 @@ export class ServerControl {
|
|||
public isRunning(): boolean {
|
||||
const proc = this.process;
|
||||
return (
|
||||
proc !== null &&
|
||||
proc.pid !== undefined &&
|
||||
proc?.pid !== undefined &&
|
||||
proc.exitCode === null &&
|
||||
proc.signalCode === null
|
||||
);
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ export class TestRunner {
|
|||
(entry) =>
|
||||
entry.details.type === step.syncType &&
|
||||
entry.details.relativePath === step.path,
|
||||
() => this.serverControl.pause()
|
||||
() => { this.serverControl.pause(); }
|
||||
);
|
||||
this.serverControl.resume();
|
||||
await historySeen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue