tidy up unit test

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
This commit is contained in:
Frederic BIDON 2019-12-18 09:49:52 +01:00
parent 63b0fb3fc1
commit 7fc1c7ebec
No known key found for this signature in database
GPG Key ID: FAE956AB61DCDA59
1 changed files with 3 additions and 7 deletions

View File

@ -324,7 +324,7 @@ func TestFindReleaseAndAsset(t *testing.T) {
expectedFound: true,
},
{
name: "find asset, no filters",
name: "find asset, no filters (2)",
rels: &github.RepositoryRelease{
Name: &rel11,
TagName: &v11,
@ -449,13 +449,9 @@ func TestFindReleaseAndAsset(t *testing.T) {
continue
}
t.Logf("asset %v, %v", asset, ver)
} else {
if found {
t.Errorf("expected not to find an asset for this fixture: %q, but got: %v", fixture.name, asset)
}
} else if found {
t.Errorf("expected not to find an asset for this fixture: %q, but got: %v", fixture.name, asset)
}
}
}
//(*github.RepositoryRelease, *github.ReleaseAsset, semver.Version, bool) {