Skip to content

Commit 4d1a32f

Browse files
committed
Fix failing test
1 parent 4b55437 commit 4d1a32f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/agent_features/test_async_generator_trace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import functools
1516
import sys
17+
import time
1618

1719
import pytest
1820
from testing_support.fixtures import capture_transaction_metrics, validate_tt_parenting
@@ -83,7 +85,7 @@ class MyException(Exception):
8385
scoped_metrics=[("Function/agen", 1)],
8486
rollup_metrics=[("Function/agen", 1)],
8587
)
86-
@validate_transaction_errors(errors=["_test_async_generator_trace:MyException"])
88+
@validate_transaction_errors(errors=["test_async_generator_trace:MyException"])
8789
def test_async_generator_error(event_loop):
8890
@function_trace(name="agen")
8991
async def agen():

0 commit comments

Comments
 (0)