mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2026-01-09 21:51:40 +00:00
vault: testing standby mode
This commit is contained in:
@@ -1062,6 +1062,12 @@ func TestCore_Standby(t *testing.T) {
|
||||
t.Fatalf("should be standby")
|
||||
}
|
||||
|
||||
// Request should fail in standby mode
|
||||
_, err = core2.HandleRequest(req)
|
||||
if err != ErrStandby {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
// Seal the first core, should step down
|
||||
err = core.Seal(root)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user