mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Removed UpdatePackages tests
This commit is contained in:
parent
834bf502ca
commit
11535bcb77
@ -62,23 +62,6 @@ func TestInfo(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUpdate(t *testing.T) {
|
||||
var conf alpm.PacmanConfig
|
||||
file, err := os.Open("/etc/pacman.conf")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
conf, err = alpm.ParseConfig(file)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
err = UpdatePackages("/tmp/yaytmp", &conf, []string{})
|
||||
if err != nil {
|
||||
t.Fatalf("Expected err to be nil but it was %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUpgrade(t *testing.T) {
|
||||
var conf alpm.PacmanConfig
|
||||
file, err := os.Open("/etc/pacman.conf")
|
||||
@ -96,22 +79,6 @@ func TestUpgrade(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkUpdate(b *testing.B) {
|
||||
var conf alpm.PacmanConfig
|
||||
file, err := os.Open("/etc/pacman.conf")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
conf, err = alpm.ParseConfig(file)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
for n := 0; n < b.N; n++ {
|
||||
UpdatePackages("/tmp/yaytmp", &conf, []string{})
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkUpgrade(b *testing.B) {
|
||||
var conf alpm.PacmanConfig
|
||||
file, err := os.Open("/etc/pacman.conf")
|
||||
|
Loading…
Reference in New Issue
Block a user