Skip to content

Commit

Permalink
fix: bad field on inv message
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Apr 4, 2024
1 parent 3b45348 commit ba3943f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions aries_cloudagent/utils/tests/test_outofband.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class TestOutOfBand(TestCase):
test_did_info = DIDInfo(test_did, test_verkey, None, method=SOV, key_type=ED25519)

def test_serialize_oob(self):
invi = InvitationMessage(
comment="my sister", label="ma sœur", services=[TestOutOfBand.test_did]
)
invi = InvitationMessage(label="ma sœur", services=[TestOutOfBand.test_did])

result = test_module.serialize_outofband(
invi, TestOutOfBand.test_did_info, "http://1.2.3.4:8081"
Expand Down
8 changes: 2 additions & 6 deletions aries_cloudagent/utils/tests/test_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def test_get_timer(self):
assert test_module.get_timer() > 0.0

def test_tracing_enabled(self):
invi = InvitationMessage(
comment="no comment", label="cable guy", services=[TestTracing.test_did]
)
invi = InvitationMessage(label="cable guy", services=[TestTracing.test_did])
assert not test_module.tracing_enabled({}, invi)
invi._trace = TraceDecorator(target="message")
assert test_module.tracing_enabled({}, invi)
Expand Down Expand Up @@ -71,9 +69,7 @@ def test_tracing_enabled(self):
assert test_module.tracing_enabled({}, outbound_message)

def test_decode_inbound_message(self):
invi = InvitationMessage(
comment="no comment", label="cable guy", services=[TestTracing.test_did]
)
invi = InvitationMessage(label="cable guy", services=[TestTracing.test_did])
message = OutboundMessage(payload=invi)
assert invi == test_module.decode_inbound_message(message)

Expand Down

0 comments on commit ba3943f

Please sign in to comment.