Skip to content

Commit

Permalink
not in a finally
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Howley <howley.robert@gmail.com>
  • Loading branch information
robhowley committed Oct 24, 2024
1 parent 92dc4bd commit ee2249a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ def python_fs_client(environment, universal_data_sources, request):
feast_objects.extend([driver(), customer(), location()])
fs.apply(feast_objects)
fs.materialize(environment.start_date, environment.end_date)
loop = asyncio.get_event_loop()
loop.run_until_complete(fs.initialize())
asyncio.get_event_loop().run_until_complete(fs.initialize())
client = TestClient(get_app(fs))
try:
yield client
finally:
asyncio.get_event_loop().run_until_complete(fs.close())
yield client
asyncio.get_event_loop().run_until_complete(fs.close())

0 comments on commit ee2249a

Please sign in to comment.