From 8a6159f67b6a3e7917e68310e4c24aae819fe187 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 8 Feb 2019 09:36:35 -0800 Subject: [PATCH] Stop using duplicate dev IDs in write_fake_ring This would cause some weird issues where get_more_nodes() would actually yield out something, despite us only having two drives. Change-Id: Ibf658d69fce075c76c0870a542348f220376c87a --- test/unit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/__init__.py b/test/unit/__init__.py index de29af08be..ea6d8cfcdf 100644 --- a/test/unit/__init__.py +++ b/test/unit/__init__.py @@ -291,7 +291,7 @@ def write_fake_ring(path, *devs): """ dev1 = {'id': 0, 'zone': 0, 'device': 'sda1', 'ip': '127.0.0.1', 'port': 6200} - dev2 = {'id': 0, 'zone': 0, 'device': 'sdb1', 'ip': '127.0.0.1', + dev2 = {'id': 1, 'zone': 0, 'device': 'sdb1', 'ip': '127.0.0.1', 'port': 6200} dev1_updates, dev2_updates = devs or ({}, {})