fix: destroy charts when switching tabs
This commit is contained in:
parent
bf09af6b5e
commit
297c913f2a
7 changed files with 22 additions and 18 deletions
|
@ -15,10 +15,10 @@ def sample_logs(tmp_path):
|
|||
log_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
(log_dir / "access.log.1").write_text(
|
||||
"127.0.0.1 - example.com [01/Jan/2024:10:00:00 +0000] \"GET / HTTP/1.1\" 200 123 \"-\" \"curl\" MISS\n"
|
||||
'127.0.0.1 - example.com [01/Jan/2024:10:00:00 +0000] "GET / HTTP/1.1" 200 123 "-" "curl" MISS\n'
|
||||
)
|
||||
(log_dir / "access.log").write_text(
|
||||
"127.0.0.1 - example.com [01/Jan/2024:10:05:00 +0000] \"GET /about HTTP/1.1\" 200 123 \"-\" \"curl\" MISS\n"
|
||||
'127.0.0.1 - example.com [01/Jan/2024:10:05:00 +0000] "GET /about HTTP/1.1" 200 123 "-" "curl" MISS\n'
|
||||
)
|
||||
|
||||
yield log_dir
|
||||
|
@ -59,4 +59,3 @@ def test_idempotent_import(sample_logs, tmp_path):
|
|||
|
||||
assert first_count == 2
|
||||
assert second_count == first_count
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue