mirror of
https://gitea.com/gitea/tea
synced 2026-05-04 06:00:40 +02:00
83b718ac34
Reviewed-on: https://gitea.com/gitea/tea/pulls/973
14 lines
374 B
Go
14 lines
374 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build testtools
|
|
|
|
package config
|
|
|
|
import "time"
|
|
|
|
// AcquireConfigLockForTesting exposes the internal lock helper to integration tests.
|
|
func AcquireConfigLockForTesting(lockPath string, timeout time.Duration) (func() error, error) {
|
|
return acquireConfigLock(lockPath, timeout)
|
|
}
|