Fix tests failing on main (#31481)

This commit is contained in:
Liam Cervante 2022-07-20 14:10:48 +01:00 committed by GitHub
parent 9f0d1d0630
commit ad5ac89461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1552,6 +1552,21 @@ func TestEnsureProviderVersions(t *testing.T) {
Location getproviders.PackageLocation
}{"1.0.0", beepProviderDir},
},
{
Event: "ProvidersLockUpdated",
Provider: beepProvider,
Args: struct {
Version string
Local []getproviders.Hash
Signed []getproviders.Hash
Prior []getproviders.Hash
}{
"1.0.0",
[]getproviders.Hash{"h1:2y06Ykj0FRneZfGCTxI9wRTori8iB7ZL5kQ6YyEnh84="},
nil,
[]getproviders.Hash{"h1:does-not-match"},
},
},
{
Event: "FetchPackageSuccess",
Provider: beepProvider,