Skip to content

Commit

Permalink
improve ut coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkk12014402 committed Dec 12, 2024
1 parent d68dcc8 commit 98227ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/cores/mega/test_dynamic_batching.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import asyncio
import multiprocessing
import os
import unittest
from enum import Enum

Expand Down Expand Up @@ -77,7 +76,6 @@ def tearDown(self):
self.process1.terminate()

async def test_dynamic_batching(self):
os.environ["LOGFLAG"] = True
url1 = "http://localhost:8080/v1/add1"
url2 = "http://localhost:8080/v1/add2"

Expand Down
2 changes: 1 addition & 1 deletion tests/cores/mega/test_hybrid_service_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_add_remote_service(self):
self.service_builder.add(opea_microservices["s1"]).add(s2)
self.service_builder.flow_to(self.s1, s2)
self.assertEqual(s2.endpoint_path, "http://fakehost:8008/v1/add")
self.assertRaises(Exception, s2._validate_env(), "N/A")
self.assertRaises(Exception, s2._validate_env, "N/A")


if __name__ == "__main__":
Expand Down

0 comments on commit 98227ea

Please sign in to comment.