Skip to content

Commit 301547d

Browse files
AlexTugarevroboquat
authored andcommitted
[iam] try to fix flaky test
starting test server after usage_test.go
1 parent e3ce970 commit 301547d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/iam/pkg/apiv1/oidc_config_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ func setupOIDCClientConfigService(t *testing.T) (v1.OIDCServiceClient, *gorm.DB)
119119
require.NoError(t, srv.Close())
120120
})
121121

122-
go func(t *testing.T) {
123-
require.NoError(t, srv.ListenAndServe())
124-
}(t)
122+
baseserver.StartServerForTests(t, srv)
125123

126124
conn, err := grpc.Dial(srv.GRPCAddress(), grpc.WithTransportCredentials(insecure.NewCredentials()))
127125
require.NoError(t, err)

0 commit comments

Comments
 (0)