diff options
Diffstat (limited to 'rsh')
| -rw-r--r-- | rsh/e2e_test.go | 3 | ||||
| -rw-r--r-- | rsh/transport_test.go | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/rsh/e2e_test.go b/rsh/e2e_test.go index e6f82b9..f4b44b4 100644 --- a/rsh/e2e_test.go +++ b/rsh/e2e_test.go @@ -46,6 +46,9 @@ func TestEndToEndRealRsync(t *testing.T) { mustWrite(t, filepath.Join(src, "sub", "b.bin"), "\x00\x01\x02\x03beta") mustWrite(t, filepath.Join(src, "sub", "c.txt"), "gamma gamma gamma") + // These flags are a copy of the vector Rsync.args builds in the app. Nothing + // links the two, so changing one without the other leaves this test proving + // an argument vector the app no longer runs. runRsync := func(mirror bool) { t.Helper() args := []string{ diff --git a/rsh/transport_test.go b/rsh/transport_test.go index d06f086..1afa1cf 100644 --- a/rsh/transport_test.go +++ b/rsh/transport_test.go @@ -148,8 +148,8 @@ func TestDialTimeoutFromEnv(t *testing.T) { } } -// A host we cannot reach must be reported with the marker the app greps for, -// so it can skip the rest of the folders bound to that remote. +// An unreachable host must be reported with the marker the app greps for, so it +// can skip the rest of the folders bound to that remote. func TestUnreachableHostIsMarked(t *testing.T) { keyPath, pub := genClientKey(t) srv := newTestServer(t, pub, func(_ string, _ io.Reader, _, _ io.Writer) int { return 0 }) |