Skip to content

Commit

Permalink
fix bug where setting TEMPORAL_CLOUD_API_KEY interferes with unit tes…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkim authored Oct 18, 2024
1 parent 6a6af68 commit ed9abc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"net"
"os"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -164,6 +165,9 @@ func (s *ServerConnectionTestSuite) TestGetServerConnection() {
}
for _, tc := range testcases {
s.Run(tc.name, func() {
// setting the env var unexpectedly interferes with the test.
require.NoError(s.T(), os.Unsetenv("TEMPORAL_CLOUD_API_KEY"))

app, cfgDir := NewTestApp(s.T(), nil, []cli.Flag{
ServerFlag,
ConfigDirFlag,
Expand Down

0 comments on commit ed9abc1

Please sign in to comment.