chore(tests): extend timeout for client

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2025-03-30 18:42:19 +02:00
parent c940141e61
commit e0703cdb7c
3 changed files with 19 additions and 15 deletions

View File

@@ -1,6 +1,8 @@
package e2e_test
import (
"time"
localagent "github.com/mudler/LocalAgent/pkg/client"
. "github.com/onsi/ginkgo/v2"
@@ -8,9 +10,9 @@ import (
)
var _ = Describe("Agent test", func() {
Context("Creates an agent and it answer", func() {
Context("Creates an agent and it answers", func() {
It("create agent", func() {
client := localagent.NewClient(localagentURL, "")
client := localagent.NewClient(localagentURL, "", 5*time.Minute)
err := client.CreateAgent(&localagent.AgentConfig{
Name: "testagent",