repo: fix repo merge unit test

Enable asserts that accidentally excluded from normal test flow.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
pull/10767/head
Markus Lehtonen 3 years ago
parent 974a6030c8
commit 7a08426869

@ -208,15 +208,16 @@ func TestMerge(t *testing.T) {
if len(ind1.Entries) != 2 {
t.Errorf("Expected 2 entries, got %d", len(ind1.Entries))
}
vs := ind1.Entries["dreadnought"]
if len(vs) != 2 {
t.Errorf("Expected 2 versions, got %d", len(vs))
}
v := vs[0]
if v.Version != "0.2.0" {
if v := vs[1]; v.Version != "0.2.0" {
t.Errorf("Expected %q version to be 0.2.0, got %s", v.Name, v.Version)
}
}
}

Loading…
Cancel
Save