fix missing variable

This commit is contained in:
Steve Waterworth
2021-03-17 15:30:51 +00:00
parent ca390c6858
commit bdc88e6e91

View File

@@ -89,6 +89,7 @@ class UserBehavior(HttpUser):
@task
def error(self):
fake_ip = random.choice(self.fake_ip_addresses)
if os.environ.get('ERROR') == '1':
print('Error request')
cart = {'total': 0, 'tax': 0}