Merge "pkg/test/integration: share large file test"

This commit is contained in:
Mathieu Lonjaret 2016-09-21 14:32:05 +00:00 committed by Gerrit Code Review
commit be9cce5eac
2 changed files with 11 additions and 0 deletions

View File

@ -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"))
}

View File

@ -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")
}