aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/sql/sql_test.go')
-rw-r--r--src/database/sql/sql_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database/sql/sql_test.go b/src/database/sql/sql_test.go
index 5f093a2d6d..40da17472d 100644
--- a/src/database/sql/sql_test.go
+++ b/src/database/sql/sql_test.go
@@ -4483,6 +4483,8 @@ func testContextCancelDuringRawBytesScan(t *testing.T, mode string) {
for _, b := range s { // some operation reading from the raw memory
sink += b
}
+ // r.Columns must not deadlock acquiring closemu.RLock.
+ _, _ = r.Columns()
}
if r.closemuScanHold {
t.Errorf("closemu held; should not be")