mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8159 from heyitsanthony/crl-test-fix
e2e: accept more kinds of errors in CRL test
This commit is contained in:
@@ -63,8 +63,8 @@ func TestCtlV3GetRevokedCRL(t *testing.T) {
|
||||
|
||||
func testGetRevokedCRL(cx ctlCtx) {
|
||||
// test reject
|
||||
if err := ctlV3Put(cx, "k", "v", ""); err == nil || !strings.Contains(err.Error(), "code = Internal") {
|
||||
cx.t.Fatalf("expected reset connection, got %v", err)
|
||||
if err := ctlV3Put(cx, "k", "v", ""); err == nil || !strings.Contains(err.Error(), "Error:") {
|
||||
cx.t.Fatalf("expected reset connection on put, got %v", err)
|
||||
}
|
||||
// test accept
|
||||
cx.epc.cfg.isClientCRL = false
|
||||
|
||||
Reference in New Issue
Block a user