From 3c465d0cdacd42713a2b1ec91b16e461bb17fa52 Mon Sep 17 00:00:00 2001 From: yisaer Date: Tue, 25 May 2021 16:10:42 +0800 Subject: [PATCH] fix test Signed-off-by: yisaer --- executor/stale_txn_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/stale_txn_test.go b/executor/stale_txn_test.go index 0cd3f8ad8d586..db4705f428d14 100644 --- a/executor/stale_txn_test.go +++ b/executor/stale_txn_test.go @@ -288,5 +288,5 @@ func (s *testStaleTxnSerialSuite) TestSetTransactionReadOnlyAsOf(c *C) { tk.MustExec(`SET TRANSACTION READ ONLY as of timestamp '2021-04-21 00:42:12'`) err = tk.ExecToErr(`START TRANSACTION READ ONLY AS OF TIMESTAMP '2020-09-06 00:00:00'`) c.Assert(err, NotNil) - c.Assert(err, Equals, "start transaction read only as of is forbidden after set transaction read only as of") + c.Assert(err.Error(), Equals, "start transaction read only as of is forbidden after set transaction read only as of") }