fix: tests
This commit is contained in:
@ -2,8 +2,10 @@ package client
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/charmbracelet/log"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
)
|
)
|
||||||
@ -28,6 +30,7 @@ func (suite *ToolTestSuite) SetupTest() {
|
|||||||
return false, errors.New("I will always error")
|
return false, errors.New("I will always error")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
suite.client.Log = log.New(os.Stdout)
|
||||||
suite.client.ToolHandler = suite.handler
|
suite.client.ToolHandler = suite.handler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user