Skip to content

Commit

Permalink
Fix unittest (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
XuanWang-Amos authored Nov 15, 2023
1 parent 4cab81e commit f6c9039
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/psm-interop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
filters: |
psm_interop_src:
- './**'
- './proto/empty.proto'
- './proto/messages.proto'
- './proto/test.proto'
- './protos/empty.proto'
- './protos/messages.proto'
- './protos/test.proto'
- uses: actions/setup-python@v4
if: ${{ steps.paths_filter.outputs.psm_interop_src == 'true' }}
Expand All @@ -65,9 +65,9 @@ jobs:
run: >
python -m grpc_tools.protoc --proto_path=.
--python_out=. --grpc_python_out=.
proto/empty.proto
proto/messages.proto
proto/test.proto
protos/empty.proto
protos/messages.proto
protos/test.proto
- name: "Run unit tests"
if: ${{ steps.paths_filter.outputs.psm_interop_src == 'true' }}
Expand Down
8 changes: 5 additions & 3 deletions framework/rpc/grpc_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
from grpc_health.v1 import health_pb2_grpc

import framework.rpc
from src.proto.grpc.testing import empty_pb2
from src.proto.grpc.testing import messages_pb2
from src.proto.grpc.testing import test_pb2_grpc
import sys
print(f">>>>path: {sys.path}")
from protos import empty_pb2
from protos import messages_pb2
from protos import test_pb2_grpc

# Type aliases
_LoadBalancerStatsRequest = messages_pb2.LoadBalancerStatsRequest
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions proto/test.proto → protos/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

syntax = "proto3";

import "proto/empty.proto";
import "proto/messages.proto";
import "protos/empty.proto";
import "protos/messages.proto";

package grpc.testing;

Expand Down

0 comments on commit f6c9039

Please sign in to comment.