Skip to content

Commit db16032

Browse files
wip on mqtt test bug
1 parent 533e2c3 commit db16032

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pioreactor/tests/test_mqtt_to_db_streaming.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import sqlite3
66
from time import sleep
77

8+
import pytest
9+
810
import pioreactor.background_jobs.leader.mqtt_to_db_streaming as m2db
911
from pioreactor import mureq
1012
from pioreactor import structs
@@ -143,6 +145,7 @@ def test_dosing_events_land_in_db() -> None:
143145
assert len(results) == 1
144146

145147

148+
@pytest.mark.xfail(reason="we stopped adding to kalman filter table in 25.1.x release")
146149
def test_kalman_filter_entries() -> None:
147150
config["storage"]["database"] = "test.sqlite"
148151
config["od_reading.config"]["samples_per_second"] = "0.2"

pioreactor/utils/sqlite_worker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ def __init__(self, file_name: str, max_queue_size: int = 100, raise_on_error: bo
6161
self._sqlite3_cursor = self._sqlite3_conn.cursor()
6262
self._sqlite3_cursor.executescript(
6363
"""
64-
PRAGMA journal_mode=WAL;
6564
PRAGMA synchronous = 1; -- aka NORMAL, recommended when using WAL
6665
PRAGMA temp_store = 2; -- stop writing small files to disk, use mem
6766
PRAGMA busy_timeout = 15000;
68-
PRAGMA foreign_keys = ON;
6967
PRAGMA synchronous = NORMAL;
7068
PRAGMA auto_vacuum = INCREMENTAL;
7169
PRAGMA cache_size = -20000;

0 commit comments

Comments
 (0)