Some changes in performance tests
Change-Id: Ieeb2ec1bc3c771cfb0e511b400ab4e6b7666b9c0
This commit is contained in:
parent
82434f46a3
commit
ed217704f4
2 changed files with 10 additions and 9 deletions
|
@ -15,12 +15,12 @@ class ContextExecutor {
|
|||
|
||||
ContextExecutor(HttpServerWraper httpServerWraper, Mock initialMock) {
|
||||
this.httpServerWraper = httpServerWraper
|
||||
this.path = '/' + initialMock.path
|
||||
this.path = "/${initialMock.path}"
|
||||
this.mocks = new CopyOnWriteArrayList<>([initialMock])
|
||||
httpServerWraper.createContext(path) {
|
||||
HttpExchange ex ->
|
||||
MockRequest request = new MockRequest(ex.requestBody.text, ex.requestHeaders, ex.requestURI)
|
||||
log.info("Mock received input")
|
||||
log.info('Mock received input')
|
||||
log.debug("Request: ${request.text}")
|
||||
for (Mock mock : mocks) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue