Closed wakr closed 9 years ago
Regarding the two tests that break with dynamic port selection:
Searching for "8080" returns multiple JSON files, such as /src/test/resources/json/courses.json
, is it possible that one of these is the problem?
If the problem indeed is the JSON, can we replace all occurences of "8080" with the dynamically chosen port when setting up the tests?
Will replace and I will start looking if the problem is the .json-files' hard-coded ports
EDIT 20150904-1835: Fixed GetCourseTest and started fixing SubmitTest
Everything should be working now
I wonder why github has no like-button for commits.
LGTM
LGTM
This fixes about 95% of the bugs that are related to the 8080-port and all 95% of the tests now use random free port (Tested with the command
python -m SimpleHTTPServer 8080
). The missing 5% are two tests that I have no clue about why those are failing when the port is not 8080.Check
GetCourseTest
andSubmitTest
for more information.