Skip to content

Commit

Permalink
Fix expected results for several RCS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitt committed Sep 27, 2022
1 parent bfd9876 commit a03f037
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/action/rcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func TestGit(t *testing.T) { //nolint:paralleltest
buf.Reset()

// GitPush
assert.Error(t, act.RCSPush(c))
assert.NoError(t, act.RCSPush(c))
assert.Contains(t, buf.String(), "No Git remote.")
buf.Reset()
}
3 changes: 2 additions & 1 deletion internal/store/leaf/rcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ func TestGit(t *testing.T) {
assert.Error(t, s.Storage().Pull(ctx, "origin", "master"))
assert.Error(t, s.Storage().Push(ctx, "origin", "master"))

// context storage is not used by GitInit, so result doesn't change
assert.NoError(t, s.GitInit(ctx))
assert.NoError(t, s.GitInit(backend.WithStorageBackend(ctx, backend.FS)))
assert.Error(t, s.GitInit(backend.WithStorageBackend(ctx, -1)))
assert.NoError(t, s.GitInit(backend.WithStorageBackend(ctx, -1)))

ctx = ctxutil.WithUsername(ctx, "foo")
ctx = ctxutil.WithEmail(ctx, "foo@baz.com")
Expand Down

0 comments on commit a03f037

Please sign in to comment.