fix(test): another attempt on flaky tests fixes

- cleanup DB calls for flaky tests
This commit is contained in:
RhodeCode Admin 2026-01-21 07:52:02 +01:00
parent bf9cd8455f
commit cafdf00501
4 changed files with 24 additions and 18 deletions

View file

@ -2693,6 +2693,7 @@ class Repository(Base, BaseModel):
empty_date = datetime.datetime.fromtimestamp(0)
repo_commit_count = 0
repo_name = self.repo_name
if cs_cache is None:
# use no-cache version here
@ -2767,7 +2768,7 @@ class Repository(Base, BaseModel):
log.debug(
"updated repo `%s` with new commit cache %s, and last update_date: %s",
self.repo_name,
repo_name,
cs_cache,
_date_latest,
)