Skip to content

Commit

Permalink
Make test language more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
aulorbe committed Jul 19, 2024
1 parent 776b6a4 commit 69d8719
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pinecone/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1061,28 +1061,29 @@ func TestNewClientBaseUnit(t *testing.T) {
expectedErr bool
}{
{
name: "Host provided in parameters",
name: "Host passed in explicitly",
host: "https://custom-host.com/",
envHost: "",
expectedHost: "https://custom-host.com/",
expectedErr: false,
},
{
name: "Host from environment variable",
name: "Host taken from environment variable",
host: "",
envHost: "https://env-host.com/",
expectedHost: "https://env-host.com/",
expectedErr: false,
},
{
name: "Default host",
name: "Host is not passed explicitly nor is it stored as an environment variable, " +
"so default host is used",
host: "",
envHost: "",
expectedHost: "https://api.pinecone.io/",
expectedErr: false,
},
{
name: "Invalid URL scheme",
name: "Pass an invalid URL scheme",
host: "invalid-host ", // invalid b/c tab chars in url
envHost: "",
expectedHost: "",
Expand Down

0 comments on commit 69d8719

Please sign in to comment.