minor cleanup
This commit is contained in:
parent
e0b6e644b6
commit
61e95ab2eb
@ -42,8 +42,8 @@ func (s *AgentServerTestSuite) SetupTest() {
|
||||
bitpipe := testsupport.NewInmemoryConnection(s.ctx, "inmemory", 10)
|
||||
agentConnection := bitpipe.Front()
|
||||
serverConnection := bitpipe.Back()
|
||||
s.serverConnection = serverConnection
|
||||
s.agentConnection = agentConnection
|
||||
s.serverConnection = serverConnection
|
||||
}
|
||||
|
||||
func (suite *AgentServerTestSuite) TearDownTest() {
|
||||
|
@ -4,8 +4,6 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"log"
|
||||
"runtime"
|
||||
"sync"
|
||||
)
|
||||
|
||||
@ -90,10 +88,6 @@ func (rw *ChannelReadWriteCloser) Close() error {
|
||||
defer rw.senderMutex.Unlock()
|
||||
|
||||
if !rw.closed {
|
||||
log.Println("Closing ChannelReadWriteCloser")
|
||||
buf := make([]byte, 0)
|
||||
runtime.Stack(buf, false)
|
||||
log.Printf("Stack %v", string(buf))
|
||||
close(rw.sender)
|
||||
rw.closed = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user