I'm trying to migrate our PostgreSQL database to Cockroach DB. So, I'm running our moch tests after setting up a single node server on my local (Macbook Pro). There were some issues which I fixed one by one, but the last one. The issue is that the tests (which were passed) started to fail with the following error messages:

```
Error: current transaction is aborted, commands ignored until end of transaction block
.

```

This is my running node configuration (which is run in insecure mode):

```
CockroachDB node starting at 2019-01-27 13:11:46.17270052 +0000 UTC (took 0.9s)
build:               CCL v2.1.1 @ 2018/11/19 18:20:16 (go1.10.3)
webui:               http://localhost:8080
sql:                 postgresql://root@localhost:26257?sslmode=disable
client flags:        cockroach <client cmd> --host=localhost:26257 --insecure

```

I tried to run the sql queries by a 1-second delay after insertion of the records and it started to work.

I would appreciate if somebody can explain why this kind of delay may required, and any solution.