mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
HTTP trigger http-stream tests (#1241)
This commit is contained in:
@@ -107,7 +107,7 @@ func (g *ghostWriter) awaitRealWriter() (io.Writer, bool) {
|
||||
g.cond.L.Unlock()
|
||||
return nil, false
|
||||
}
|
||||
if _, ok := g.inner.(*waitWriter); ok {
|
||||
if _, ok := g.inner.(*waitWriter); ok || g.inner == nil {
|
||||
g.cond.Wait()
|
||||
} else {
|
||||
break
|
||||
@@ -180,7 +180,7 @@ func (g *ghostReader) awaitRealReader() (io.Reader, bool) {
|
||||
g.cond.L.Unlock()
|
||||
return nil, false
|
||||
}
|
||||
if _, ok := g.inner.(*waitReader); ok {
|
||||
if _, ok := g.inner.(*waitReader); ok || g.inner == nil {
|
||||
g.cond.Wait()
|
||||
} else {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user