fix: 오류 수정
This commit is contained in:
@@ -820,7 +820,12 @@ describe("candidate archive and provider upload boundaries", () => {
|
||||
await expect(readFile(path.join(cgroupRoot, "pids.max"), "utf8")).resolves.toBe("64\n");
|
||||
await expect(readFile(path.join(cgroupRoot, "cpu.max"), "utf8")).resolves.toBe("100000 100000\n");
|
||||
expect(readProviderUnitMetadata(unit)).not.toMatch(new RegExp(`${command}|${credential}`, "u"));
|
||||
expect(showProcessArguments(execution.child.pid)).not.toMatch(new RegExp(`${command}|${credential}`, "u"));
|
||||
// Read once, while the supervisor is still alive, and reuse below. `argv`
|
||||
// does not change over a process's life, so the recorded value says the
|
||||
// same thing a second lookup would -- except that by the time the run has
|
||||
// completed there is no process left to look up, and `ps` failed.
|
||||
const supervisorArguments = showProcessArguments(execution.child.pid);
|
||||
expect(supervisorArguments).not.toMatch(new RegExp(`${command}|${credential}`, "u"));
|
||||
const reportIdentity = await lstat(fixture.reportPath);
|
||||
const result = await execution.completion;
|
||||
tree.stop();
|
||||
@@ -837,7 +842,7 @@ describe("candidate archive and provider upload boundaries", () => {
|
||||
const directChildPids = tree.directChildPids();
|
||||
const directChildArguments = tree.directChildArguments();
|
||||
const observedArguments = [
|
||||
showProcessArguments(execution.child.pid),
|
||||
supervisorArguments,
|
||||
...directChildArguments,
|
||||
...processArguments,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user