Skip to content

Commit

Permalink
Fixed feature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Mar 28, 2024
1 parent e663843 commit 641fdb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qdb/memqdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions test/feature/features/coordinator.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/feature/features/proxy_console.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 641fdb5

Please sign in to comment.