e2e: accept more kinds of errors in CRL test

Semaphore is failing with context exceeded errors and dial timeouts, only
returning an "Error: ..." from expect on etcdctl. So, only test for
"Error:" instead of grpc internal errors.
This commit is contained in:
Anthony Romano 2017-06-22 13:27:36 -07:00
parent 310a09691f
commit e22d00a9f1

View File

@ -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