mirror of https://github.com/perkeep/perkeep.git
Merge "pkg/test/integration: share large file test"
This commit is contained in:
commit
be9cce5eac
|
@ -31,6 +31,12 @@ func TestFileSharing(t *testing.T) {
|
|||
share(t, "share_test.go")
|
||||
}
|
||||
|
||||
// like TestFileSharing, but with a file large enough to have several parts,
|
||||
// including some bytesRef parts.
|
||||
func TestFileWithBytesSharing(t *testing.T) {
|
||||
share(t, test.GetWorld(t).ServerBinary())
|
||||
}
|
||||
|
||||
func TestDirSharing(t *testing.T) {
|
||||
share(t, filepath.FromSlash("../integration"))
|
||||
}
|
||||
|
|
|
@ -371,3 +371,8 @@ func (w *World) SecretRingFile() string {
|
|||
|
||||
// SearchHandlerPath returns the path to the search handler, with trailing slash.
|
||||
func (w *World) SearchHandlerPath() string { return "/my-search/" }
|
||||
|
||||
// ServerBinary returns the location of the camlistored binary running for this World.
|
||||
func (w *World) ServerBinary() string {
|
||||
return filepath.Join(w.camRoot, "bin", "camlistored")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue