From 641fdb53ebaea42be081c1bcb8246fdeb1b5eca4 Mon Sep 17 00:00:00 2001 From: Yury Frolov Date: Thu, 28 Mar 2024 19:23:45 +0500 Subject: [PATCH] Fixed feature tests --- qdb/memqdb.go | 2 +- test/feature/features/coordinator.feature | 4 ++-- test/feature/features/proxy_console.feature | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qdb/memqdb.go b/qdb/memqdb.go index b263d6a89..6aa282226 100644 --- a/qdb/memqdb.go +++ b/qdb/memqdb.go @@ -271,7 +271,7 @@ func (q *MemQDB) TryLockKeyRange(lock *sync.RWMutex, id string, read bool) error res = lock.TryLock() } if !res { - return spqrerror.Newf(spqrerror.SPQR_KEYRANGE_ERROR, "key range \"%s\" is already locked", id) + return spqrerror.Newf(spqrerror.SPQR_KEYRANGE_ERROR, "key range \"%s\" is locked", id) } if _, ok := q.Krs[id]; !ok { diff --git a/test/feature/features/coordinator.feature b/test/feature/features/coordinator.feature index 655a64ce4..eebe78e9f 100644 --- a/test/feature/features/coordinator.feature +++ b/test/feature/features/coordinator.feature @@ -235,7 +235,7 @@ Feature: Coordinator test """ Then SQL error on host "router" should match regexp """ - context deadline exceeded + key range "krid1" is locked """ Given I run SQL on host "coordinator" @@ -342,7 +342,7 @@ Feature: Coordinator test """ Then SQL error on host "coordinator" should match regexp """ - context deadline exceeded + key range "krid1" is locked """ When I run SQL on host "coordinator" diff --git a/test/feature/features/proxy_console.feature b/test/feature/features/proxy_console.feature index 777f6bd69..5413b6ecf 100644 --- a/test/feature/features/proxy_console.feature +++ b/test/feature/features/proxy_console.feature @@ -98,7 +98,7 @@ Feature: Proxy console """ Then SQL error on host "router2" should match regexp """ - context deadline exceeded + key range "krid1" is locked """ When I run SQL on host "router-admin"