Files
opencloud/services/search/pkg/content/export_test.go
T

12 lines
292 B
Go

package content
import "time"
// SetProbeTimeout shortens the version check, a test of a hanging tika would
// otherwise wait seconds per probe
func SetProbeTimeout(d time.Duration) (restore func()) {
previous := probeTimeout
probeTimeout = d
return func() { probeTimeout = previous }
}