fix(test) use newly created index instead of ignoring it

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
pull/7508/head
Karuppiah Natarajan 5 years ago
parent df20164cd2
commit 6cfcc96cea
No known key found for this signature in database
GPG Key ID: C674A28337662A96

@ -119,7 +119,7 @@ func TestRepoIndexCmd(t *testing.T) {
t.Error(err) t.Error(err)
} }
_, err = repo.LoadIndexFile(destIndex) index, err = repo.LoadIndexFile(destIndex)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
@ -130,8 +130,8 @@ func TestRepoIndexCmd(t *testing.T) {
} }
vs = index.Entries["compressedchart"] vs = index.Entries["compressedchart"]
if len(vs) != 3 { if len(vs) != 1 {
t.Errorf("expected 3 versions, got %d: %#v", len(vs), vs) t.Errorf("expected 1 versions, got %d: %#v", len(vs), vs)
} }
expectedVersion = "0.3.0" expectedVersion = "0.3.0"

Loading…
Cancel
Save