vault/external_tests/raft: fix dropped test error (#14519)
This commit is contained in:
parent
b43ed904f2
commit
50a9dedbcb
|
@ -492,6 +492,9 @@ func TestRaft_SnapshotAPI(t *testing.T) {
|
||||||
// Take a snapshot
|
// Take a snapshot
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
err := leaderClient.Sys().RaftSnapshot(buf)
|
err := leaderClient.Sys().RaftSnapshot(buf)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
snap, err := io.ReadAll(buf)
|
snap, err := io.ReadAll(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|
Loading…
Reference in New Issue