Updating simple example servers to not use run_forever (can't Ctrl+c)
- Adding xfail to simple servers as they tend to not like certain versions of python when called repeated for testing
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import argparse
|
||||
import capnp
|
||||
import time
|
||||
|
||||
import calculator_capnp
|
||||
|
||||
@@ -131,7 +132,9 @@ def main():
|
||||
address = parse_args().address
|
||||
|
||||
server = capnp.TwoPartyServer(address, bootstrap=CalculatorImpl())
|
||||
server.run_forever()
|
||||
while True:
|
||||
server.poll_once()
|
||||
time.sleep(0.001)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user