mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
lease: use sort.Strings instead of StringSlice
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
645c7c9a92
commit
21d4307982
@ -183,7 +183,7 @@ func TestLessorRevoke(t *testing.T) {
|
||||
}
|
||||
|
||||
wdeleted := []string{"bar_", "foo_"}
|
||||
sort.Sort(sort.StringSlice(fd.deleted))
|
||||
sort.Strings(fd.deleted)
|
||||
if !reflect.DeepEqual(fd.deleted, wdeleted) {
|
||||
t.Errorf("deleted= %v, want %v", fd.deleted, wdeleted)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user