mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
Integration fixes
This commit is contained in:
parent
86f9b582d5
commit
074dc3b9d8
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ func GetTestEndpoint() (*api.Client, string) {
|
|||
var serverMutex sync.Mutex
|
||||
var serverReady bool
|
||||
|
||||
func startServer(ctx context.Context, ollamaHost string) error {
|
||||
func startServer(t *testing.T, ctx context.Context, ollamaHost string) error {
|
||||
// Make sure the server has been built
|
||||
CLIName, err := filepath.Abs("../ollama")
|
||||
if err != nil {
|
||||
|
@ -200,7 +200,7 @@ func InitServerConnection(ctx context.Context, t *testing.T) (*api.Client, strin
|
|||
}
|
||||
lifecycle.ServerLogFile = fp.Name()
|
||||
fp.Close()
|
||||
require.NoError(t, startServer(ctx, testEndpoint))
|
||||
require.NoError(t, startServer(t, ctx, testEndpoint))
|
||||
}
|
||||
|
||||
return client, testEndpoint, func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue