teleport/lib/backend/memory
a-palchikov 3d459db6d3
Test flakes: use ordering tests for keep alives (#5358)
* Evaluate watcher events to decide whether keep-alives are effective
instead of relying on arbitrary TTLs (implemented as absolute time which
adds to trouble).

Fixes https://github.com/gravitational/teleport/issues/5346.

* Replace the approximate expire timestamps comparisons with the ordering tests

* Address review comments. Move ordered keep-alive tests back to backend/test/suite

* Use an alternative implementation of FakeClock.Advance for etcd to use real time.Sleep as etcd server cannot use fakeclock

* Address review comments

* Use fake clock in firestore tests

* Add missing import

Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>
2021-04-14 14:47:14 -07:00
..
doc.go Use in-memory cache for the auth server API. 2019-04-12 14:23:09 -07:00
item.go gosimple: simplify or remote return statements 2020-05-15 16:32:45 +00:00
memory.go Test flakes: use ordering tests for keep alives (#5358) 2021-04-14 14:47:14 -07:00
memory_test.go Test flakes: use ordering tests for keep alives (#5358) 2021-04-14 14:47:14 -07:00
minheap.go Use RADIX trees for prefix matching. (#2666) 2019-04-22 15:28:04 -07:00