vault/external_tests/raft: fix dropped test error (#14519)

This commit is contained in:
Lars Lehtonen 2022-03-16 08:32:57 -07:00 committed by GitHub
parent 7d47386896
commit cd19aeaf5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,6 +492,9 @@ func TestRaft_SnapshotAPI(t *testing.T) {
// Take a snapshot
buf := new(bytes.Buffer)
err := leaderClient.Sys().RaftSnapshot(buf)
if err != nil {
t.Fatal(err)
}
snap, err := io.ReadAll(buf)
if err != nil {
t.Fatal(err)