File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626raise_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
5858def 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 )
You can’t perform that action at this time.
0 commit comments