test: fix cypress tests (#4951)
This commit is contained in:
parent
9dd64a78b9
commit
41e82c2280
@ -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}
|
||||
|
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user