Browse Source

Merge pull request #8159 from heyitsanthony/crl-test-fix

e2e: accept more kinds of errors in CRL test
Anthony Romano 8 years ago
parent
commit
4c43fb83df
1 changed files with 2 additions and 2 deletions
  1. 2 2
      e2e/ctl_v3_kv_test.go

+ 2 - 2
e2e/ctl_v3_kv_test.go

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