fix: Remove expensive logs table migration (#11920)

This commit is contained in:
Erik Ritter
2020-12-04 07:59:28 -08:00
committed by GitHub
parent 327a2817d3
commit 77d362d306
7 changed files with 110 additions and 24 deletions

View File

@@ -79,5 +79,8 @@ class TestEventLogger(unittest.TestCase):
result = test_func(1, karg1=2) # pylint: disable=no-value-for-parameter
self.assertEqual(result, 2)
# should contain only manual payload
self.assertEqual(mock_log.call_args[1]["records"], [{"foo": "bar"}])
self.assertEqual(
mock_log.call_args[1]["records"],
[{"foo": "bar", "path": "/", "path_no_param": "/", "ref": None}],
)
assert mock_log.call_args[1]["duration_ms"] >= 100