Skip to content

Commit

Permalink
fix log list e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
vscheuber committed Sep 28, 2023
1 parent d35dea3 commit e5b0c8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/cli/log/log-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ program
);
} else {
printMessage(`Log sources from ${state.getHost()}`);
sources.forEach((source) => {
for (const source of sources) {
printMessage(`${source}`, 'data');
});
}
printMessage(
'Use any combination of comma separated sources, example:',
'info'
Expand Down
14 changes: 5 additions & 9 deletions test/e2e/log-list.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,9 @@ const env = {
};

describe('frodo log list', () => {
// flaky test. skipping in github pipeline until we can figure out to make it succeed
testif(!process.env['GITHUB_TOKEN'])(
'"frodo log list": should list the names of the logs sources',
async () => {
const CMD = `frodo log list`;
const { stdout } = await exec(CMD, env);
expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot();
}
);
test('"frodo log list": should list the names of the logs sources', async () => {
const CMD = `frodo log list`;
const { stdout } = await exec(CMD, env);
expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot();
});
});

0 comments on commit e5b0c8c

Please sign in to comment.