fix(cli): harden backup publication and quiescing
This commit is contained in:
@@ -125,7 +125,8 @@ func TestDecodeManifestRejectsASecondDocument(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := DecodeManifest(append(encoded, encoded...)); err == nil {
|
||||
withSecondDocument := append(append([]byte(nil), encoded...), append([]byte(" \n"), encoded...)...)
|
||||
if _, err := DecodeManifest(withSecondDocument); err == nil {
|
||||
t.Fatal("DecodeManifest() accepted a second JSON document")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user