@@ -49,7 +49,6 @@ func Test_LoadEnvConfig(t *testing.T) { //nolint:paralleltest // These tests are
4949 envvars : map [string ]string {
5050 "CI" : "true" ,
5151 "NEW_CONFIG_ENABLED" : "true" ,
52- "JD_WS_RPC" : "ws://localhost:1234" ,
5352 "JD_GRPC" : "grpc://localhost:4567" ,
5453 "JD_AUTH_COGNITO_APP_CLIENT_ID" : "2b3caf1a" ,
5554 "JD_AUTH_COGNITO_APP_CLIENT_SECRET" : "22222222" ,
@@ -74,7 +73,6 @@ func Test_LoadEnvConfig(t *testing.T) { //nolint:paralleltest // These tests are
7473 require .NotNil (t , cfg )
7574
7675 // Validate environment configuration
77- assert .Equal (t , "ws://localhost:1234" , cfg .Offchain .JobDistributor .Endpoints .WSRPC )
7876 assert .Equal (t , "grpc://localhost:4567" , cfg .Offchain .JobDistributor .Endpoints .GRPC )
7977 assert .Equal (t , "2b3caf1a" , cfg .Offchain .JobDistributor .Auth .CognitoAppClientID )
8078 assert .Equal (t , "22222222" , cfg .Offchain .JobDistributor .Auth .CognitoAppClientSecret )
@@ -96,10 +94,9 @@ func Test_LoadEnvConfig(t *testing.T) { //nolint:paralleltest // These tests are
9694 {
9795 name : "Load config with new config enabled (loads from env vars)" ,
9896 envvars : map [string ]string {
99- "CI" : "true" ,
100- "OFFCHAIN_JD_ENDPOINTS_WSRPC" : "ws://localhost:1234" ,
101- "OFFCHAIN_JD_ENDPOINTS_GRPC" : "grpc://localhost:4567" ,
102- "OFFCHAIN_JD_AUTH_COGNITO_APP_CLIENT_ID" : "2b3caf1a" ,
97+ "CI" : "true" ,
98+ "OFFCHAIN_JD_ENDPOINTS_GRPC" : "grpc://localhost:4567" ,
99+ "OFFCHAIN_JD_AUTH_COGNITO_APP_CLIENT_ID" : "2b3caf1a" ,
103100 "OFFCHAIN_JD_AUTH_COGNITO_APP_CLIENT_SECRET" : "22222222" ,
104101 "OFFCHAIN_JD_AUTH_AWS_REGION" : "us-east-1" ,
105102 "OFFCHAIN_JD_AUTH_USERNAME" : "testuser2" ,
@@ -128,7 +125,6 @@ func Test_LoadEnvConfig(t *testing.T) { //nolint:paralleltest // These tests are
128125 require .NotNil (t , cfg )
129126
130127 // Validate environment configuration
131- assert .Equal (t , "ws://localhost:1234" , cfg .Offchain .JobDistributor .Endpoints .WSRPC )
132128 assert .Equal (t , "grpc://localhost:4567" , cfg .Offchain .JobDistributor .Endpoints .GRPC )
133129 assert .Equal (t , "2b3caf1a" , cfg .Offchain .JobDistributor .Auth .CognitoAppClientID )
134130 assert .Equal (t , "22222222" , cfg .Offchain .JobDistributor .Auth .CognitoAppClientSecret )
0 commit comments