Repository: AgnostiqHQ/covalent (language: python)

Issue:
Local Executor functional tests hanging in CI pipeline
### Environment

- **Covalent version**: develop
- **Python version**: 3.8.13
- **Operating system**: Ubuntu 18.04, Ubuntu 20.04,  CentOS 7, MacOS 11


### What is happening?

Functional tests seem to hang when starting covalent with `--no-cluster` flag.

### How can we reproduce the issue?

Run tests workflow in develop

### What should happen?

The tests should pass or timeout if it starts taking too long

### Any suggestions?

_No response_


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 43a3d14bf..09cd95a65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [UNRELEASED]
 
+### Tests
+
+- Fixed `test_using_executor_names` and `test_internal_sublattice_dispatch` tests to also work with `--no-cluster` option.
+
 ## [0.186.0] - 2022-08-25
 
 ### Authors
@@ -23,8 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - Co-authored-by: Kamalesh-suresh <kamalesh.suresh@psiog.com>
 - Co-authored-by: Prasy12 <prasanna.venkatesh@psiog.com>
 
-
-
 ### Operations
 
 - Fix conditional logic around dumping of `covalent` logs to stdout in test workflows


Test patch:
diff --git a/tests/functional_tests/choose_executor_test.py b/tests/functional_tests/choose_executor_test.py
index e6ffd685b..f17f8f7a8 100644
--- a/tests/functional_tests/choose_executor_test.py
+++ b/tests/functional_tests/choose_executor_test.py
@@ -28,37 +28,36 @@
 def test_using_executor_names():
     """Test that all loaded executors can be used in a simple electron."""
 
-    for executor_name in ["local", "dask"]:
+    executor_name = "local"
 
-        @ct.electron(executor=executor_name)
-        def passthrough(x):
-            return x
+    @ct.electron(executor=executor_name)
+    def passthrough(x):
+        return x
 
-        @ct.lattice()
-        def workflow(y):
-            return passthrough(x=y)
+    @ct.lattice()
+    def workflow(y):
+        return passthrough(x=y)
 
-        dispatch_id = ct.dispatch(workflow)(y="input")
-        output = ct.get_result(dispatch_id, wait=True)
+    dispatch_id = ct.dispatch(workflow)(y="input")
+    output = ct.get_result(dispatch_id, wait=True)
 
-        assert output.result == "input"
+    assert output.result == "input"
 
 
-@pytest.mark.skip(reason="Trying to pickle _asyncio.Task even though there is no such object")
 def test_using_executor_classes():
     """Test creating executor objects and using them in a simple electron."""
 
-    for executor in [ct.executor.LocalExecutor(), ct.executor.DaskExecutor()]:
+    executor = ct.executor.LocalExecutor()
 
-        @ct.electron(executor=executor)
-        def passthrough(x):
-            return x
+    @ct.electron(executor=executor)
+    def passthrough(x):
+        return x
 
-        @ct.lattice
-        def workflow(y):
-            return passthrough(x=y)
+    @ct.lattice
+    def workflow(y):
+        return passthrough(x=y)
 
-        dispatch_id = ct.dispatch(workflow)(y="input")
-        output = ct.get_result(dispatch_id, wait=True)
+    dispatch_id = ct.dispatch(workflow)(y="input")
+    output = ct.get_result(dispatch_id, wait=True)
 
-        assert output.result == "input"
+    assert output.result == "input"
diff --git a/tests/functional_tests/workflow_stack_test.py b/tests/functional_tests/workflow_stack_test.py
index 5ccad920f..5fe6d8e8b 100644
--- a/tests/functional_tests/workflow_stack_test.py
+++ b/tests/functional_tests/workflow_stack_test.py
@@ -138,7 +138,7 @@ def add(a, b):
     inputs = {}
     inputs["args"] = []
     inputs["kwargs"] = {"a": ct.TransportableObject(1), "b": ct.TransportableObject(2)}
-    workflow_executor = ["dask", {}]
+    workflow_executor = ["local", {}]
     dispatch_id = "asdf"
     sub_dispatch_id = await _dispatch_sublattice(
         dispatch_id,