Skip to content

Commit

Permalink
Adjust test case to use deque too
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed May 3, 2024
1 parent 7b17cfd commit 8ede95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import random
import time
import unittest
from collections import defaultdict
from collections import defaultdict, deque
from operator import itemgetter
from unittest import mock

Expand Down Expand Up @@ -2984,7 +2984,7 @@ def test_exception_is_caught(self):
class MyTaskSet(TaskSet):
def __init__(self, *a, **kw):
super().__init__(*a, **kw)
self._task_queue = [self.will_error, self.will_stop]
self._task_queue = deque([self.will_error, self.will_stop])

@task(1)
def will_error(self):
Expand Down

0 comments on commit 8ede95b

Please sign in to comment.