minor cleanup

This commit is contained in:
Erik Brakkee 2024-08-21 16:59:33 +02:00
parent e0b6e644b6
commit 61e95ab2eb
2 changed files with 1 additions and 7 deletions

View File

@ -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() {

View File

@ -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
}