Skip to content

Commit 16198b4

Browse files
committed
revert more unnecessary changes
1 parent ad15120 commit 16198b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reflex/testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ def _wait_frontend(self):
966966
def _start_backend(self):
967967
if self.app_asgi is None:
968968
raise RuntimeError("App was not initialized.")
969+
environment.REFLEX_SKIP_COMPILE.set(True)
969970
self.backend = uvicorn.Server(
970971
uvicorn.Config(
971972
app=self.app_asgi,
@@ -975,8 +976,7 @@ def _start_backend(self):
975976
),
976977
)
977978
self.backend.shutdown = self._get_backend_shutdown_handler()
978-
with chdir(self.app_path):
979-
self.backend_thread = threading.Thread(target=self.backend.run)
979+
self.backend_thread = threading.Thread(target=self.backend.run)
980980
self.backend_thread.start()
981981

982982
def _poll_for_servers(self, timeout: TimeoutType = None) -> socket.socket:

0 commit comments

Comments
 (0)