Server is perfectly running on local machine but looks like server didnt start during assesment

Server is perfectly running on local machine but looks like server didnt start during assesment

prepared_server.sh
#!/bin/bash
####################################################

DO NOT CHANGE THE GRADLE OPTIONS IN THE BLOCK

BELOW, IT WILL HAVE IMPACT ON THE PERFORMANCE

OF YOUR APPLICATION

####################################################
GRADLE_OPTS="-Dgradle.user.home=~/gradle_cache" #
####################################################

CRIO_SOLUTION_START

cp ./initial_data_load.json ./buildout/src/test/resources/initial_data_load.json

CRIO_SOLUTION_END

./gradlew clean bootrun &
while ! netstat -tna | grep ‘LISTEN>’ | grep -q ‘:8081>’; do
echo “waiting for spring application to start”
sleep 2 # time in seconds, tune it as needed
done

If you have any script to load the data make sure that its part of this bash script.

#CRIO_SOLUTION_START
./gradlew loaddata
#CRIO_SOLUTION_END

assesment file

020-07-26 05:25:57,729 unitTesting-asge33usgeg INFO Running gradle test
2020-07-26 05:26:05,686 unitTesting-asge33usgeg INFO Gradle test complete!
2020-07-26 05:26:05,690 unitTesting-asge33usgeg INFO
Gradle test logs:
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/5.2.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

Task :compileJava NO-SOURCE
Task :processResources NO-SOURCE
Task :classes UP-TO-DATE
Task :compileTestJava NO-SOURCE
Task :processTestResources NO-SOURCE
Task :testClasses UP-TO-DATE
Task :test
Task :buildout:compileJava UP-TO-DATE
Task :buildout:processResources UP-TO-DATE
Task :buildout:classes UP-TO-DATE
Task :buildout:compileTestJava UP-TO-DATE
Task :buildout:processTestResources UP-TO-DATE
Task :buildout:testClasses UP-TO-DATE> Task :buildout:testcom.crio.buildouts.HelloTest > test() STANDARD_OUT
hello worldcom.crio.buildouts.service.QuizServiceImplTest > putQuestion() STANDARD_OUT
QuestionDto(moduleId=null, questionId=001, title=dds, description=gdf, type=cdf, options=null, correctAnswer=[abc])TEST RESULT: SUCCESS
TEST SUMMARY: RAN 4 TESTS, 4 SUCCEEDED, 0 FAILED, 0 SKIPPEDDeprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD SUCCESSFUL in 7s
6 actionable tasks: 2 executed, 4 up-to-date2020-07-26 05:26:05,694 unitTesting-asge33usgeg INFO Gradle test run complete
2020-07-26 05:26:05,713 unitTesting-asge33usgeg INFO User test results generated
2020-07-26 05:26:05,715 unitTesting-asge33usgeg INFO Cloning assessment repo
2020-07-26 05:26:06,992 unitTesting-asge33usgeg INFO Starting server…!

@anand-crio please have a look