Skip to content

Commit

Permalink
Fix flaky script and flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Gieringer <78054+carlgieringer@users.noreply.github.com>
  • Loading branch information
carlgieringer committed Jul 7, 2023
1 parent df82395 commit 9db2cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/check-flaky-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ while [[ $run_count -lt $total_runs ]]; do
run_count=$((run_count+1))
echo -en "\r\033[KRun $run_count/$total_runs ($failure_count failures)"
if [[ -n $test_name_pattern ]]; then
output=$(yarn run test "'$test_suite_pattern'" --testNamePattern="$test_name_pattern" 2>&1)
output=$(yarn run test "$test_suite_pattern" --testNamePattern="$test_name_pattern" 2>&1)
elif [[ -n $test_suite_pattern ]]; then
output=$(yarn run test "'$test_suite_pattern'" 2>&1)
output=$(yarn run test "$test_suite_pattern" 2>&1)
else
output=$(yarn run test 2>&1)
fi
Expand Down
1 change: 1 addition & 0 deletions premiser-ui/src/CreatePropositionPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ describe("CreatePropositionPage", () => {
{ history }
);

jest.runAllTimers();
const tagName = "TestTag";
await user.type(screen.getByLabelText(/tag/i), tagName);
await user.type(screen.getByLabelText(/tag/i), "{Enter}");
Expand Down

0 comments on commit 9db2cbe

Please sign in to comment.