aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/stress_test.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-14 13:40:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-14 13:40:48 +0300
commit2a7d39e995eeede2e266c5071db19597060cf038 (patch)
tree6fb58917ebc955b180a47a8212875a4538f954a5 /test/stress_test.py
parentDocker: ignore irrelevant stuff (diff)
downloadmath-server-2a7d39e995eeede2e266c5071db19597060cf038.tar.gz
math-server-2a7d39e995eeede2e266c5071db19597060cf038.zip
add missing copyright headers
Diffstat (limited to 'test/stress_test.py')
-rw-r--r--test/stress_test.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/stress_test.py b/test/stress_test.py
index 233a0de..3e13a10 100644
--- a/test/stress_test.py
+++ b/test/stress_test.py
@@ -1,3 +1,15 @@
+#!/usr/bin/env python3
+
+# Copyright (c) 2019 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "math-server" project.
+# For details, see https://github.com/egor-tensin/math-server.
+# Distributed under the MIT License.
+
+'''This is a crappy script to feed the server with somewhat random arithmetic
+expressions.
+It's throwaway, hence the poor quality.
+'''
+
import argparse
import ast
from contextlib import contextmanager
@@ -9,10 +21,6 @@ from subprocess import PIPE
import sys
from timeit import default_timer
-# This is a crappy script to feed the server with somewhat random arithmetic
-# expressions.
-# It's throwaway, hence the poor quality.
-
DEFAULT_CLIENT_PATH = 'client'
DEFAULT_HOST = 'localhost'
DEFAULT_PORT = 18000