@@ -3,12 +3,13 @@ package storage
33import (
44 "context"
55 "fmt"
6- "google.golang.org/protobuf/types/known/timestamppb"
76 "net"
87 "os"
98 "testing"
109 "time"
1110
11+ "google.golang.org/protobuf/types/known/timestamppb"
12+
1213 "github.com/stretchr/testify/assert"
1314 "github.com/stretchr/testify/require"
1415 "google.golang.org/grpc"
@@ -49,6 +50,7 @@ func (s *testWorkflowServer) DownloadArtifact(ctx context.Context, req *pb.Downl
4950// ---------- Test GRPC Dial with TLS Credentials ----------
5051
5152func TestIntegration_GRPCWithCerts (t * testing.T ) {
53+ t .Parallel ()
5254 // Paths to self-signed certificate and key fixtures.
5355 serverCertPath := "./test-fixtures/domain_test.pem"
5456 serverKeyPath := "./test-fixtures/domain_test.key"
@@ -120,6 +122,7 @@ func TestIntegration_GRPCWithCerts(t *testing.T) {
120122}
121123
122124func TestIntegration_GRPC_Insecure (t * testing.T ) {
125+ t .Parallel ()
123126 // Start a test gRPC server without TLS.
124127 lis , err := net .Listen ("tcp" , "localhost:0" )
125128 require .NoError (t , err )
@@ -166,6 +169,7 @@ func TestIntegration_GRPC_Insecure(t *testing.T) {
166169}
167170
168171func TestNewWorkflowClient_InvalidAddress (t * testing.T ) {
172+ t .Parallel ()
169173 lggr := logger .Test (t )
170174 wc , err := NewWorkflowClient (lggr , "invalid-address" ,
171175 WithWorkflowTransportCredentials (insecure .NewCredentials ()),
@@ -186,6 +190,7 @@ func TestNewWorkflowClient_InvalidAddress(t *testing.T) {
186190}
187191
188192func TestWorkflowClient_CloseTwice (t * testing.T ) {
193+ t .Parallel ()
189194 lis , err := net .Listen ("tcp" , "localhost:0" )
190195 require .NoError (t , err )
191196 grpcServer := grpc .NewServer ()
@@ -211,6 +216,7 @@ func TestWorkflowClient_CloseTwice(t *testing.T) {
211216}
212217
213218func TestWorkflowClient_DialUnreachable (t * testing.T ) {
219+ t .Parallel ()
214220 lggr := logger .Test (t )
215221 unreachableAddr := "192.0.2.1:12345" // Reserved for documentation.
216222 wc , err := NewWorkflowClient (lggr , unreachableAddr ,
@@ -234,6 +240,7 @@ func TestWorkflowClient_DialUnreachable(t *testing.T) {
234240// ---------- Test JWT Token Creation ----------
235241
236242func TestWorkflowClient_AddJWTAuthToContext (t * testing.T ) {
243+ t .Parallel ()
237244
238245 mockJWT := mocks .NewJWTGenerator (t )
239246 req := MockRequest {Field : "test request" }
@@ -262,6 +269,7 @@ func TestWorkflowClient_AddJWTAuthToContext(t *testing.T) {
262269
263270// Test that client handles the case when no JWT manager is provided.
264271func TestWorkflowClient_NoSigningKey (t * testing.T ) {
272+ t .Parallel ()
265273 ctx := context .Background ()
266274 req := MockRequest {Field : "test" }
267275 wc := & workflowClient {
@@ -277,6 +285,7 @@ func TestWorkflowClient_NoSigningKey(t *testing.T) {
277285
278286// Test that client handles JWT manager errors properly
279287func TestWorkflowClient_VerifySignature_Invalid (t * testing.T ) {
288+ t .Parallel ()
280289 mockJWT := mocks .NewJWTGenerator (t )
281290 req := MockRequest {Field : "test" }
282291
@@ -294,6 +303,7 @@ func TestWorkflowClient_VerifySignature_Invalid(t *testing.T) {
294303}
295304
296305func TestWorkflowClient_RepeatedSign (t * testing.T ) {
306+ t .Parallel ()
297307 mockJWT := mocks .NewJWTGenerator (t )
298308 req := MockRequest {Field : "repeatable" }
299309 expectedToken := "consistent.jwt.token"
0 commit comments