Skip to content

Commit

Permalink
fix lease-get case in refill tests
Browse files Browse the repository at this point in the history
Summary: This test is consistently failing: https://fburl.com/test/duh7t68p

Reviewed By: stuclar

Differential Revision: D65275379

fbshipit-source-id: 4640e6bb11c274034919f69e65e8baaab09c0f6d
  • Loading branch information
Lenar Fatikhov authored and facebook-github-bot committed Oct 31, 2024
1 parent 58d48f5 commit 51c7304
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcrouter/test/test_mcrefill.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def test_basic_leases(self):

def condition():
stat = self.mc1.stats()
return stat["total_items"] == "1"
# this stat is bumped twice because lease-get
# creates a lease token item
return stat["total_items"] == "2"

self.assert_eventually_true(condition)
res = self.mcrouter.leaseGet(key)
Expand Down

0 comments on commit 51c7304

Please sign in to comment.