Skip to content

Commit

Permalink
Exclude latency tests for keydb/redict
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Dec 5, 2024
1 parent cdfe522 commit edc6f49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/commands/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,10 @@ async def test_lastsave(self, client, _s):

@pytest.mark.min_server_version("6.0.0")
@pytest.mark.nocluster
@pytest.mark.nokeydb
async def test_lolwut(self, client, _s):
lolwut = await client.lolwut(5)
assert _s("Redis ver.") in lolwut
assert _s("ver.") in lolwut

@pytest.mark.nocluster
async def test_memory_doctor(self, client, _s):
Expand All @@ -272,10 +273,13 @@ async def test_memory_usage(self, client, _s):
assert (await client.memory_usage(_s("key"), samples=1)) > 1024

@pytest.mark.nocluster
@pytest.mark.nokeydb
async def test_latency_doctor(self, client, _s):
assert await client.latency_doctor()

@pytest.mark.nocluster
@pytest.mark.nokeydb
@pytest.mark.noredict
async def test_latency_all(self, client, _s):
await client.execute_command(b"debug", "sleep", 0.05)
history = await client.latency_history("command")
Expand All @@ -291,6 +295,8 @@ async def test_latency_all(self, client, _s):
assert latest[_s("command")][2] == approx(50, 60)

@pytest.mark.nocluster
@pytest.mark.nokeydb
@pytest.mark.noredict
async def test_latency_graph(self, client, _s):
await client.execute_command(b"debug", "sleep", 0.05)
graph = await client.latency_graph("command")
Expand Down

0 comments on commit edc6f49

Please sign in to comment.