Update dependencies.

This commit is contained in:
2021-09-17 23:52:02 +01:00
parent d2f80e98fa
commit c8ee8838e0
4 changed files with 33 additions and 33 deletions
+3 -2
View File
@@ -7,6 +7,7 @@ import (
"os"
"testing"
"github.com/lukaszraczylo/pandati"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
@@ -160,11 +161,11 @@ func (suite *TestSuite) Test_initialize() {
suite.T().Run(tt.name, func(t *testing.T) {
os.Unsetenv("GRAPHQL_ENDPOINT")
GraphQLUrl = ""
if tt.env_endpoint != "" {
if !pandati.IsZero(tt.env_endpoint) {
os.Setenv("GRAPHQL_ENDPOINT", tt.env_endpoint)
t.Log(tt.env_endpoint, os.Getenv("GRAPHQL_ENDPOINT"))
}
if tt.local_endpoint != "" {
if !pandati.IsZero(tt.local_endpoint) {
os.Unsetenv("GRAPHQL_ENDPOINT")
GraphQLUrl = tt.local_endpoint
}