@@ -31,7 +31,7 @@ def test_constructor_with_valid_config():
3131 sc = ShareConsumer ({
3232 'group.id' : 'test-share-group' ,
3333 'bootstrap.servers' : 'localhost:9092' ,
34- 'session .timeout.ms' : 100 ,
34+ 'socket .timeout.ms' : 100 ,
3535 })
3636 assert sc is not None
3737 sc .close ()
@@ -42,7 +42,7 @@ def test_subscribe():
4242 sc = ShareConsumer ({
4343 'group.id' : 'test-share-group' ,
4444 'bootstrap.servers' : 'localhost:9092' ,
45- 'session .timeout.ms' : 100 ,
45+ 'socket .timeout.ms' : 100 ,
4646 })
4747
4848 sc .subscribe (['test-topic' ])
@@ -59,7 +59,7 @@ def test_unsubscribe():
5959 sc = ShareConsumer ({
6060 'group.id' : 'test-share-group' ,
6161 'bootstrap.servers' : 'localhost:9092' ,
62- 'session .timeout.ms' : 100 ,
62+ 'socket .timeout.ms' : 100 ,
6363 })
6464
6565 sc .subscribe (['test-topic' ])
@@ -77,7 +77,7 @@ def test_consume_batch_no_broker():
7777 'group.id' : 'test-share-group' ,
7878 'bootstrap.servers' : 'localhost:9092' ,
7979 'socket.timeout.ms' : '100' ,
80- 'session .timeout.ms' : 100 ,
80+ 'socket .timeout.ms' : 100 ,
8181 })
8282
8383 sc .subscribe (['test-topic' ])
@@ -96,7 +96,7 @@ def test_close_idempotent():
9696 sc = ShareConsumer ({
9797 'group.id' : 'test-share-group' ,
9898 'bootstrap.servers' : 'localhost:9092' ,
99- 'session .timeout.ms' : 100 ,
99+ 'socket .timeout.ms' : 100 ,
100100 })
101101
102102 sc .close ()
@@ -108,7 +108,7 @@ def test_any_method_after_close_throws_exception():
108108 sc = ShareConsumer ({
109109 'group.id' : 'test-share-group' ,
110110 'bootstrap.servers' : 'localhost:9092' ,
111- 'session .timeout.ms' : 100 ,
111+ 'socket .timeout.ms' : 100 ,
112112 })
113113
114114 sc .subscribe (['test-topic' ])
@@ -148,7 +148,7 @@ def test_concurrent_consumers():
148148 kafka_config = {
149149 'group.id' : 'test-share-group-integration' ,
150150 'bootstrap.servers' : 'localhost:9092' ,
151- 'session .timeout.ms' : 100 ,
151+ 'socket .timeout.ms' : 100 ,
152152 }
153153
154154 sc1 = ShareConsumer (kafka_config )
0 commit comments