From 69d8719ab34822b668fa9c1fe5f08d587b97b88e Mon Sep 17 00:00:00 2001 From: aulorbe Date: Wed, 17 Jul 2024 14:16:23 -0700 Subject: [PATCH] Make test language more clear --- pinecone/client_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pinecone/client_test.go b/pinecone/client_test.go index 0adf6f1..9cd984d 100644 --- a/pinecone/client_test.go +++ b/pinecone/client_test.go @@ -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: "",