summaryrefslogtreecommitdiff
diff options
authorPawel Stolowski <stolowski@gmail.com>2019-02-08 10:48:09 +0100
committerPawel Stolowski <stolowski@gmail.com>2019-02-08 10:48:09 +0100
commit97bce5dbc130e9c9dcc9c2b556e39a4877d296f8 (patch)
treec3573fead02c20d5d9b61e9f427493ced9e10957
parente4fdabb3168202cf16fb6ae06efddf2bf874e755 (diff)
Simplified ensureUniqueName test.hotplug-slotname
-rw-r--r--overlord/ifacestate/hotplug_test.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/overlord/ifacestate/hotplug_test.go b/overlord/ifacestate/hotplug_test.go
index 958dbf6d2f..89e9bd902b 100644
--- a/overlord/ifacestate/hotplug_test.go
+++ b/overlord/ifacestate/hotplug_test.go
@@ -228,27 +228,15 @@ func (s *hotplugSuite) TestEnsureUniqueName(c *C) {
"slot": true,
"slot1234": true,
"slot-1": true,
- "slot-2": true,
- "slot3-5": true,
- "slot3-6": true,
- "11": true,
- "12foo": true,
- "slot-99": true,
}
return !reserved[n]
}
names := []struct{ proposedName, resultingName string }{
{"foo", "foo"},
- {"slot", "slot-3"},
- {"slot1", "slot1-1"},
+ {"slot", "slot-2"},
{"slot1234", "slot1234-1"},
{"slot-1", "slot-1-1"},
- {"slot3-5", "slot3-5-1"},
- {"slot3-1", "slot3-1"},
- {"11", "11-1"},
- {"12foo", "12foo-1"},
- {"slot-99", "slot-99-1"},
}
for _, name := range names {