0
0
forked from toolshed/abra

fix tests

This commit is contained in:
p4u1 2025-03-07 15:20:18 +01:00
parent a82cdbf150
commit e35f8f95c6
2 changed files with 3 additions and 7 deletions

View File

@ -15,10 +15,6 @@ func TestIsDirty(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if err := r.IsDirty(); err != nil {
t.Fatal(err)
}
assert.False(t, r.Dirty) assert.False(t, r.Dirty)
fpath := filepath.Join(r.Dir, "foo.txt") fpath := filepath.Join(r.Dir, "foo.txt")
@ -31,9 +27,10 @@ func TestIsDirty(t *testing.T) {
os.Remove(fpath) os.Remove(fpath)
}) })
if err := r.IsDirty(); err != nil { dirty, err := r.IsDirty()
if err != nil {
t.Fatal(err) t.Fatal(err)
} }
assert.True(t, r.Dirty) assert.True(t, dirty)
} }

View File

@ -78,7 +78,6 @@ func TestGet(t *testing.T) {
Name: "mygit.org/myorg/cool-recipe", Name: "mygit.org/myorg/cool-recipe",
EnvVersion: "1e83340e", EnvVersion: "1e83340e",
EnvVersionRaw: "1e83340e+U", EnvVersionRaw: "1e83340e+U",
Dirty: true,
Dir: path.Join(cfg.GetAbraDir(), "/recipes/mygit_org_myorg_cool-recipe"), Dir: path.Join(cfg.GetAbraDir(), "/recipes/mygit_org_myorg_cool-recipe"),
GitURL: "https://mygit.org/myorg/cool-recipe.git", GitURL: "https://mygit.org/myorg/cool-recipe.git",
SSHURL: "ssh://git@mygit.org/myorg/cool-recipe.git", SSHURL: "ssh://git@mygit.org/myorg/cool-recipe.git",