diff --git a/tools/rsync/api_test.go b/tools/rsync/api_test.go index 4c2637bc2..51a46b9ab 100644 --- a/tools/rsync/api_test.go +++ b/tools/rsync/api_test.go @@ -63,6 +63,9 @@ func run_roundtrip_test(t *testing.T, src_data, changed []byte, num_of_patches, if err != nil { t.Fatal(err) } + if delta_ops[len(delta_ops)-1].Type != OpHash { + t.Fatalf("Last operation was not OpHash") + } total_data_in_delta = 0 outputbuf := bytes.Buffer{} for _, op := range delta_ops {