Skip to content

Commit

Permalink
Fixed server not starting at begin of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 22, 2024
1 parent db560ea commit d088257
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/groovy/it/fulminazzo/railway/RailwayTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class RailwayTest extends Specification {

def setupSpec() {
railway = new Railway(PORT, THREADS, ROOT_DIR)
railway.start()
}

def cleanupSpec() {
Expand All @@ -35,7 +36,6 @@ class RailwayTest extends Specification {
HttpURLConnection connection = url.openConnection() as HttpURLConnection

when:
railway.start()
connection.setRequestMethod('GET')
connection.connect()

Expand All @@ -51,7 +51,6 @@ class RailwayTest extends Specification {
HttpURLConnection connection = url.openConnection() as HttpURLConnection

when:
railway.start()
connection.setRequestMethod(method)
connection.connect()

Expand Down

0 comments on commit d088257

Please sign in to comment.