Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Atanasov <[email protected]>
  • Loading branch information
ata-nas committed Oct 11, 2024
1 parent 33f5226 commit 7078ece
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ tasks.register("buildAndRunSmokeTestsContainer") {
dependsOn(tasks.build)

doLast {
// build and start smoke test container
exec {
workingDir(layout.projectDirectory.dir("docker"))
commandLine(
Expand Down
2 changes: 1 addition & 1 deletion server/docker/update-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ true = "$is_debug" ]; then
echo "SERVER_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'" >> .env
fi

if [ true = "$is_smoke_test" ]; then # TODO make sure every place this script is called knows about this change!
if [ true = "$is_smoke_test" ]; then
# add smoke test variables
echo "MEDIATOR_RING_BUFFER_SIZE=1024" >> .env
echo "NOTIFIER_RING_BUFFER_SIZE=1024" >> .env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ private ServerMappedConfigSourceInitializer() {
throw new UnsupportedOperationException("Creating instances is not supported!");
}

/**
* This method constructs, initializes and returns a new instance of {@link MappedConfigSource}
* which internally uses {@link SystemEnvironmentConfigSource} and maps relevant config keys to
* other keys so that they could be used within the application
*
* @return newly constructed fully initialized {@link MappedConfigSource}
*/
public static MappedConfigSource getMappedConfigSource() {
final MappedConfigSource config =
new MappedConfigSource(SystemEnvironmentConfigSource.getInstance());
Expand Down

0 comments on commit 7078ece

Please sign in to comment.