Skip to content

Commit 0b320e1

Browse files
committed
class test
Signed-off-by: Sidhant Kohli <sidhant.kohli@gmail.com>
1 parent 6473d4f commit 0b320e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/sourcetransform/test_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
raise_error_from_st = False
2727

2828

29-
class TestAsyncSourceTrn(SourceTransformer):
29+
class SimpleAsyncSourceTrn(SourceTransformer):
3030
async def handler(self, keys: list[str], datum: Datum) -> Messages:
3131
if raise_error_from_st:
3232
raise ValueError("Exception thrown from transform")
@@ -56,7 +56,7 @@ def startup_callable(loop):
5656

5757

5858
def new_async_st():
59-
handle = TestAsyncSourceTrn()
59+
handle = SimpleAsyncSourceTrn()
6060
server = SourceTransformAsyncServer(source_transform_instance=handle)
6161
udfs = server.servicer
6262
return udfs
@@ -253,7 +253,7 @@ def __stub(self):
253253
return transform_pb2_grpc.SourceTransformStub(_channel)
254254

255255
def test_max_threads(self):
256-
handle = TestAsyncSourceTrn()
256+
handle = SimpleAsyncSourceTrn()
257257
# max cap at 16
258258
server = SourceTransformAsyncServer(source_transform_instance=handle, max_threads=32)
259259
self.assertEqual(server.max_threads, 16)

0 commit comments

Comments
 (0)