Skip to content

Commit

Permalink
added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aradmaleki02 committed Feb 13, 2024
1 parent 7fa8d4b commit 54307f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/fault_tolerance.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import List
from threading import Lock

from client import pull, push, subscribe
from dummy_client import pull, push, subscribe

TEST_SIZE = 1000 * 1000
KEY_SIZE = 8
Expand Down
2 changes: 1 addition & 1 deletion test/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
from typing import Dict, List

from client import pull, push, subscribe
from dummy_client import pull, push, subscribe

TEST_SIZE = 1000 * 1000
KEY_SIZE = 8
Expand Down
2 changes: 1 addition & 1 deletion test/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### press enter once more and see if you have a increase in throughput rate of the cluster

import multiprocessing
from client import pull, push, subscribe
from dummy_client import pull, push, subscribe

TEST_SIZE = 1000 * 1000
KEY_SIZE = 8
Expand Down
13 changes: 13 additions & 0 deletions test/unit_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest

from client.python import kafka_client as python_client
from client.go import client as go_client


# simple test which gets passed for all clients
class TestClient(unittest.TestCase):
def always_pass(self):
self.assertTrue(True)

if __name__ == '__main__':
unittest.main()

0 comments on commit 54307f6

Please sign in to comment.