Skip to content

Update LoadConfig function to accept optional filenames for configura…#1

Merged
itsfuad merged 1 commit intoreleasefrom
main
Oct 15, 2025
Merged

Update LoadConfig function to accept optional filenames for configura…#1
itsfuad merged 1 commit intoreleasefrom
main

Conversation

@itsfuad
Copy link
Owner

@itsfuad itsfuad commented Oct 15, 2025

This pull request updates the configuration loading mechanism to allow specifying a custom configuration file, improving flexibility for testing and deployment scenarios. The main test has also been updated to use this new capability.

Configuration loading improvements:

  • Modified the LoadConfig function in config/configs.go to accept an optional filename argument, defaulting to "servers.json" if none is provided.

Testing improvements:

  • Updated the TestLoadBalancerInitialization test in main_test.go to call LoadConfig with a specific test configuration file, ensuring the test uses the intended file.

@itsfuad itsfuad merged commit 5cbfce8 into release Oct 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant