Add TimeoutMatcher with tests
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 6 Oct 2017 20:04:50 +0000 (22:04 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 27 Apr 2018 15:34:20 +0000 (17:34 +0200)
commitec19b27ff3f751b8949125de0b0f04c8651bae94
treea9f6aac3afe75155cfde4ef35f0fea021b4aedaa
parentbb6cbf25a23f5ec4970e72cdb4bb731a9bc84dbb
Add TimeoutMatcher with tests

TimeoutMatcher is a Matcher interface implementation for handling
running requests timeouts caused by expiration of requests' job timeout.

It tries to run Close on all reported requests. Some of the timeouts
might be invalid, because the request has changed it's state to done
or failed.

Tests base on using MockRequestsManager for mocking up RequestsManager
interface.

Change-Id: I6540ab50eb84f8ab1b9737ad71e7ae3a5ddd3170
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
matcher/timeoutmatcher.go [new file with mode: 0644]
matcher/timeoutmatcher_test.go [new file with mode: 0644]