mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
Make the copy_memory_usage test less flaky
Increase the failure threshold.
This commit is contained in:
parent
d65cad94e3
commit
8e4dcddad6
@ -51,11 +51,11 @@ select count(*) from portal_memory_log;
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- We'll only compare the biggest runs, because the smaller ones have variance
|
-- We'll only compare the biggest runs, because the smaller ones have variance
|
||||||
-- due to new chunks being created and other unknown reasons. Allow 5% change of
|
-- due to new chunks being created and other unknown reasons. Allow 10% change of
|
||||||
-- memory usage to account for some randomness.
|
-- memory usage to account for some randomness.
|
||||||
select * from portal_memory_log where (
|
select * from portal_memory_log where (
|
||||||
select (max(bytes) - min(bytes)) / max(bytes)::float > 0.05
|
select (max(bytes) - min(bytes)) / max(bytes)::float > 0.1
|
||||||
from portal_memory_log where id >= 4
|
from portal_memory_log where id >= 3
|
||||||
);
|
);
|
||||||
id | bytes
|
id | bytes
|
||||||
----+-------
|
----+-------
|
||||||
|
@ -51,9 +51,9 @@ set timescaledb.max_cached_chunks_per_hypertable = 3;
|
|||||||
select count(*) from portal_memory_log;
|
select count(*) from portal_memory_log;
|
||||||
|
|
||||||
-- We'll only compare the biggest runs, because the smaller ones have variance
|
-- We'll only compare the biggest runs, because the smaller ones have variance
|
||||||
-- due to new chunks being created and other unknown reasons. Allow 5% change of
|
-- due to new chunks being created and other unknown reasons. Allow 10% change of
|
||||||
-- memory usage to account for some randomness.
|
-- memory usage to account for some randomness.
|
||||||
select * from portal_memory_log where (
|
select * from portal_memory_log where (
|
||||||
select (max(bytes) - min(bytes)) / max(bytes)::float > 0.05
|
select (max(bytes) - min(bytes)) / max(bytes)::float > 0.1
|
||||||
from portal_memory_log where id >= 4
|
from portal_memory_log where id >= 3
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user