Skip to content

Commit ca7acdd

Browse files
authored
remove GATEWAY_CONFIG env test from main_test.go (#501)
Removing test from main_test suite
1 parent eb14483 commit ca7acdd

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

e2e/main_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,6 @@ func Test_PATH_E2E(t *testing.T) {
171171
printServiceSummaries(serviceSummaries)
172172
}
173173

174-
func testGatewayConfigViaEnv(t *testing.T, ctx context.Context, ts *TestService) {
175-
data, err := os.ReadFile(filePath)
176-
if err != nil {
177-
t.Fatalf("Failed to read fs: %v", err)
178-
}
179-
180-
yamlString := string(data)
181-
182-
if err = os.Setenv("GATEWAY_CONFIG", yamlString); err != nil {
183-
t.Fatalf("Failed to set env variable: %v", err)
184-
}
185-
186-
if err = LoadGatewayConfigFromEnv(); err != nil {
187-
t.Fatalf("Failed to get config from yaml: %v", err)
188-
}
189-
}
190-
191174
// runAllServiceTests orchestrates either HTTP or Websocket tests based on test mode.
192175
// This function runs either HTTP tests OR Websocket tests, never both.
193176
func runAllServiceTests(t *testing.T, ctx context.Context, ts *TestService) {

0 commit comments

Comments
 (0)