From 492c97ad315760aa3021d609dc60eef701c137de Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Fri, 26 May 2017 14:48:18 -0700 Subject: [PATCH] have test expose bug in unique_service() --- tests/test_svcreg.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_svcreg.py b/tests/test_svcreg.py index 68f4d91..aae5e22 100644 --- a/tests/test_svcreg.py +++ b/tests/test_svcreg.py @@ -61,12 +61,14 @@ def test_unique_service(rr): svc01 = { "role": "example-role", "ttl": 1.2, - "node": "test01.example.com" + "node": "test01.example.com", + "foo": "bar", } svc02 = { "role": "example-role", "ttl": 1.2, - "node": "test02.example.com" + "node": "test02.example.com", + "baz": "quux", } # register svc01. output should be svc01. output = svcreg.unique_service('example-role', candidate=svc01) @@ -84,7 +86,6 @@ def test_unique_service(rr): assert output3['last_heartbeat'] > output1['last_heartbeat'] svcreg.unregister('example-role') - def test_service_registry(rr): svcreg = doublethink.ServiceRegistry(rr) # missing required fields