diff options
| author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-09-06 15:14:28 +0300 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-09-20 18:06:13 +0000 |
| commit | da8f406f069490a14aef878559a6db08f4d53344 (patch) | |
| tree | 14bb00141d7a1f5d6d0d19729bbfb5062443231d /src/database/sql/sql_test.go | |
| parent | bebf82cbf696002acfde605735e0f454b730df9d (diff) | |
| download | go-da8f406f069490a14aef878559a6db08f4d53344.tar.xz | |
all: simplify bool conditions
Change-Id: Id2079f7012392dea8dfe2386bb9fb1ea3f487a4a
Reviewed-on: https://go-review.googlesource.com/c/go/+/526015
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
| -rw-r--r-- | src/database/sql/sql_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/sql/sql_test.go b/src/database/sql/sql_test.go index f1c946d4e4..c38a348ab4 100644 --- a/src/database/sql/sql_test.go +++ b/src/database/sql/sql_test.go @@ -3769,7 +3769,7 @@ func TestIssue18719(t *testing.T) { cancel() // Wait for the context to cancel and tx to rollback. - for tx.isDone() == false { + for !tx.isDone() { time.Sleep(pollDuration) } } |
