mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
tidy up unit test
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
This commit is contained in:
parent
63b0fb3fc1
commit
7fc1c7ebec
1 changed files with 3 additions and 7 deletions
|
@ -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 {
|
||||
} 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) {
|
||||
|
|
Loading…
Reference in a new issue