mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
test(downloads): remove non reproducible tests
This commit is contained in:
parent
ab902e9cc6
commit
4a515c4462
2 changed files with 0 additions and 46 deletions
|
@ -205,29 +205,6 @@ func TestABSPKGBUILDRepo(t *testing.T) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GIVEN a previous existing folder without permissions
|
|
||||||
// WHEN ABSPKGBUILDRepo is called
|
|
||||||
// THEN a clone command should be formed
|
|
||||||
func TestABSPKGBUILDRepoExistsNoPerms(t *testing.T) {
|
|
||||||
dir, _ := ioutil.TempDir("/tmp/", "yay-test")
|
|
||||||
defer os.RemoveAll(dir)
|
|
||||||
|
|
||||||
os.MkdirAll(filepath.Join(dir, "linux", ".git"), 0o600)
|
|
||||||
|
|
||||||
cmdRunner := &testRunner{}
|
|
||||||
cmdBuilder := &testGitBuilder{
|
|
||||||
index: 0,
|
|
||||||
test: t,
|
|
||||||
parentBuilder: &exe.CmdBuilder{
|
|
||||||
GitBin: "/usr/local/bin/git",
|
|
||||||
GitFlags: []string{"--no-replace-objects"},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
err := ABSPKGBUILDRepo(cmdRunner, cmdBuilder, "core", "linux", dir, false)
|
|
||||||
assert.Error(t, err)
|
|
||||||
assert.Contains(t, err.Error(), "error fetching linux: error reading")
|
|
||||||
}
|
|
||||||
|
|
||||||
// GIVEN a previous existing folder with permissions
|
// GIVEN a previous existing folder with permissions
|
||||||
// WHEN ABSPKGBUILDRepo is called
|
// WHEN ABSPKGBUILDRepo is called
|
||||||
// THEN a pull command should be formed
|
// THEN a pull command should be formed
|
||||||
|
|
|
@ -88,29 +88,6 @@ func TestAURPKGBUILDRepo(t *testing.T) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GIVEN a previous existing folder without permissions
|
|
||||||
// WHEN AURPKGBUILDRepo is called
|
|
||||||
// THEN a clone command should be formed
|
|
||||||
func TestAURPKGBUILDRepoExistsNoPerms(t *testing.T) {
|
|
||||||
dir, _ := ioutil.TempDir("/tmp/", "yay-test")
|
|
||||||
defer os.RemoveAll(dir)
|
|
||||||
|
|
||||||
os.MkdirAll(filepath.Join(dir, "yay-bin", ".git"), 0o600)
|
|
||||||
|
|
||||||
cmdRunner := &testRunner{}
|
|
||||||
cmdBuilder := &testGitBuilder{
|
|
||||||
index: 0,
|
|
||||||
test: t,
|
|
||||||
parentBuilder: &exe.CmdBuilder{
|
|
||||||
GitBin: "/usr/local/bin/git",
|
|
||||||
GitFlags: []string{"--no-replace-objects"},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
err := AURPKGBUILDRepo(cmdRunner, cmdBuilder, "https://aur.archlinux.org", "yay-bin", dir, false)
|
|
||||||
assert.Error(t, err)
|
|
||||||
assert.Contains(t, err.Error(), "error fetching yay-bin: error reading")
|
|
||||||
}
|
|
||||||
|
|
||||||
// GIVEN a previous existing folder with permissions
|
// GIVEN a previous existing folder with permissions
|
||||||
// WHEN AURPKGBUILDRepo is called
|
// WHEN AURPKGBUILDRepo is called
|
||||||
// THEN a pull command should be formed
|
// THEN a pull command should be formed
|
||||||
|
|
Loading…
Reference in a new issue