-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use internal endpointregistry.lastSeen field in tests
Signed-off-by: Roman Zavodskikh <roman.zavodskikh@zalando.de>
- Loading branch information
Roman Zavodskikh
committed
Sep 14, 2023
1 parent
4b2d6eb
commit ecd00c7
Showing
3 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
package routing | ||
|
||
import "time" | ||
|
||
var ( | ||
ExportProcessRouteDef = processRouteDef | ||
ExportNewMatcher = newMatcher | ||
ExportMatch = (*matcher).match | ||
ExportProcessPredicates = processPredicates | ||
ExportLastSeenTimeout = lastSeenTimeout | ||
) | ||
|
||
func SetNow(r *EndpointRegistry, now func() time.Time) { | ||
r.now = now | ||
} |