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 7c10d9b commit 5a13c39
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/commands/test_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ async def test_acl_load(self, client):
await client.acl_load()

@pytest.mark.min_server_version("6.0.0")
@pytest.mark.nokeydb
@pytest.mark.nocluster
async def test_acl_log(self, client, _s):
with pytest.warns(UserWarning):
Expand Down
1 change: 1 addition & 0 deletions tests/commands/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ async def test_client_setname(self, client, _s):
assert await client.client_setname("redis_py_test")
assert await client.client_getname() == _s("redis_py_test")

@pytest.mark.nokeydb
async def test_client_pause(self, client, event_loop):
key = "key_should_expire"
another_client = coredis.Redis(loop=event_loop)
Expand Down
2 changes: 2 additions & 0 deletions tests/commands/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ async def test_dump_and_restore_with_freq(self, client, _s):
freq_now = await client.object_freq("a")
assert freq + 1 == freq_now

@pytest.mark.nokeydb
@pytest.mark.novalkey
@pytest.mark.noredict
async def test_dump_and_restore_with_idle_time(self, client, _s):
Expand Down Expand Up @@ -375,6 +376,7 @@ async def test_object_encoding_listpack(self, client, _s):
assert await client.object_encoding("a") == _s("embstr")
assert await client.object_encoding("b") == _s("listpack")

@pytest.mark.nokeydb
@pytest.mark.novalkey
@pytest.mark.noredict
async def test_object_freq(self, client, _s):
Expand Down
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 5a13c39

Please sign in to comment.