Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when calculate the repository size (#22392) #22474

Merged
merged 3 commits into from
Jan 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review: appease linter
John Olheiser authored Jan 16, 2023
commit 9a9f67ae45fe8f370d005b7d93580eb26df5e9db
2 changes: 1 addition & 1 deletion modules/repository/create_test.go
Original file line number Diff line number Diff line change
@@ -172,7 +172,7 @@ func TestUpdateRepositoryVisibilityChanged(t *testing.T) {

func TestGetDirectorySize(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
repo, err := repo_model.GetRepositoryByID(db.DefaultContext, 1)
repo, err := repo_model.GetRepositoryByID(1)
assert.NoError(t, err)

size, err := getDirectorySize(repo.RepoPath())