def test_execute_in_loop(self):
        fora = self.create_executor()

        def add(x, y):
            return x+y

        with fora:
            t0 = time.time()
            ct = 0
            while ct < 100:
                fora.submit(add, 1, 2).result().toLocal().result()
                ct += 1
        self.assertTrue(time.time() - t0 < 4.0)
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/PurePython/InMemoryExecutorTestCases.py/InMemoryExecutorTestCases.test_execute_in_loop/original