Remove bad channel sync causing orphaned goroutine
This commit is contained in:
@@ -1543,13 +1543,9 @@ func TestListenNotifyWhileBusyIsSafe(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
notifierDone := make(chan bool)
|
|
||||||
go func() {
|
go func() {
|
||||||
conn := mustConnect(t, *defaultConnConfig)
|
conn := mustConnect(t, *defaultConnConfig)
|
||||||
defer closeConn(t, conn)
|
defer closeConn(t, conn)
|
||||||
defer func() {
|
|
||||||
notifierDone <- true
|
|
||||||
}()
|
|
||||||
|
|
||||||
for i := 0; i < 100000; i++ {
|
for i := 0; i < 100000; i++ {
|
||||||
mustExec(t, conn, "notify busysafe, 'hello'")
|
mustExec(t, conn, "notify busysafe, 'hello'")
|
||||||
|
|||||||
Reference in New Issue
Block a user