Skip to content

Commit 91a1f09

Browse files
committed
fix(ab): its dict.keys(), not dict.key()
We were calling a non-existing function on an error path. This is why I prefer compiled languages smh. Signed-off-by: Patrick Roy <[email protected]>
1 parent f558683 commit 91a1f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ab_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def load_data_series(report_path: Path, tag=None, *, reemit: bool = False):
136136
# multiple EMF log messages. We need to reassemble :(
137137
assert (
138138
processed_emf[dimension_set].keys() == result.keys()
139-
), f"Found incompatible metrics associated with dimension set {dimension_set}: {processed_emf[dimension_set].key()} in one EMF message, but {result.keys()} in another."
139+
), f"Found incompatible metrics associated with dimension set {dimension_set}: {processed_emf[dimension_set].keys()} in one EMF message, but {result.keys()} in another."
140140

141141
for metric, (values, unit) in processed_emf[dimension_set].items():
142142
assert result[metric][1] == unit

0 commit comments

Comments
 (0)