Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <[email protected]>
  • Loading branch information
mikaelarguedas committed Apr 10, 2020
1 parent 15dfc12 commit 2ae51fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sros2/sros2/policy/schemas/policy.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
<xs:element name="policy" type="Policy" />
<xs:complexType name="Policy">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="enclaves" type="Contexts" />
<xs:element name="enclaves" type="Enclaves" />
</xs:sequence>
<xs:attribute name="version" type="xs:string" use="required" fixed="0.2.0"/>
</xs:complexType>

<xs:complexType name="Contexts">
<xs:complexType name="Enclaves">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="enclave" type="Context" />
<xs:element name="enclave" type="Enclave" />
</xs:sequence>
</xs:complexType>

<xs:complexType name="Context">
<xs:complexType name="Enclave">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="profiles" type="Profiles" />
</xs:sequence>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def test_generate_policy_topics():
with tempfile.TemporaryDirectory() as tmpdir:
# Create a test-specific enclave so that generate_policy can still init
enclave = rclpy.Context()
context = rclpy.Context()
rclpy.init(enclave=enclave)
node = rclpy.create_node('test_generate_policy_topics_node', enclave=enclave)

Expand Down Expand Up @@ -72,7 +72,7 @@ def test_generate_policy_topics():
def test_generate_policy_services():
with tempfile.TemporaryDirectory() as tmpdir:
# Create a test-specific enclave so that generate_policy can still init
enclave = rclpy.Context()
context = rclpy.Context()
rclpy.init(enclave=enclave)
node = rclpy.create_node('test_generate_policy_services_node', enclave=enclave)

Expand Down

0 comments on commit 2ae51fd

Please sign in to comment.