Skip to content

Commit

Permalink
fix(#151): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent 76b6432 commit 057889c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions apps/backend/src/docker/docker.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@ export class DockerConsumer {
const exec = await this.dockerExcution(inputs, mainFileName, container);
let output = '';
const stream = await exec.start({ hijack: true, stdin: true });
for (const input of inputs) {
console.log('input:', input);
await stream.write(input + '\n');
console.log('delay');
await this.delay(100); //각 입력 term
}
console.log('입력 끝');
return new Promise((resolve, reject) => {
let time = null;

Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DockerController {
async getDockersTest2(): Promise<string> {
try {
const gitToken = this.configService.get<string>('GIT_TOKEN');
const inputs = [];
const inputs = ['1 1 1 1', '1 1 1 1', '1 1 1 1', '1 1 1 1'];
const value = await this.dockerProducer.getDocker(
gitToken,
'7f93da28e2522409a2274eff51b5dc20',
Expand Down

0 comments on commit 057889c

Please sign in to comment.