test: fix cypress tests (#4951)

This commit is contained in:
Erez Rokah 2021-02-11 07:21:40 -08:00 committed by GitHub
parent 9dd64a78b9
commit 41e82c2280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -653,8 +653,8 @@ export default class API {
params: {
pagelen: 50,
q: oneLine`
source.repository.full_name = "${this.repo}"
AND state = "${BitBucketPullRequestState.OPEN}"
source.repository.full_name = "${this.repo}"
AND state = "${BitBucketPullRequestState.OPEN}"
AND destination.branch.name = "${this.branch}"
AND comment_count > 0
AND ${sourceQuery}

View File

@ -155,7 +155,7 @@ async function getDiffs(git: simpleGit.SimpleGit, source: string, dest: string)
}
export async function validateRepo({ repoPath }: { repoPath: string }) {
const git = simpleGit(repoPath).silent(false);
const git = simpleGit(repoPath);
const isRepo = await git.checkIsRepo();
if (!isRepo) {
throw Error(`${repoPath} is not a valid git repository`);
@ -168,7 +168,7 @@ export function getSchema({ repoPath }: { repoPath: string }) {
}
export function localGitMiddleware({ repoPath, logger }: GitOptions) {
const git = simpleGit(repoPath).silent(false);
const git = simpleGit(repoPath);
// we can only perform a single git operation at any given time
const mutex = withTimeout(new Mutex(), 3000, new Error('Request timed out'));