Rename
This commit is contained in:
@@ -13,9 +13,9 @@ func TestE2E(t *testing.T) {
|
||||
RunSpecs(t, "E2E test suite")
|
||||
}
|
||||
|
||||
var testModel = os.Getenv("LOCALAGENT_MODEL")
|
||||
var testModel = os.Getenv("LOCALAGI_MODEL")
|
||||
var apiURL = os.Getenv("LOCALAI_API_URL")
|
||||
var localagentURL = os.Getenv("LOCALAGENT_API_URL")
|
||||
var localagiURL = os.Getenv("LOCALAGI_API_URL")
|
||||
|
||||
func init() {
|
||||
if testModel == "" {
|
||||
|
||||
@@ -3,7 +3,7 @@ package e2e_test
|
||||
import (
|
||||
"time"
|
||||
|
||||
localagent "github.com/mudler/LocalAgent/pkg/client"
|
||||
localagi "github.com/mudler/LocalAGI/pkg/client"
|
||||
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
var _ = Describe("Agent test", func() {
|
||||
Context("Creates an agent and it answers", func() {
|
||||
It("create agent", func() {
|
||||
client := localagent.NewClient(localagentURL, "", 5*time.Minute)
|
||||
client := localagi.NewClient(localagiURL, "", 5*time.Minute)
|
||||
|
||||
err := client.CreateAgent(&localagent.AgentConfig{
|
||||
err := client.CreateAgent(&localagi.AgentConfig{
|
||||
Name: "testagent",
|
||||
})
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
Reference in New Issue
Block a user