Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saquibmian committed Nov 10, 2023
1 parent 0c142c9 commit 062e671
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion private/buf/bufsync/backfill_tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
func TestBackfilltags(t *testing.T) {
t.Parallel()
const defaultBranchName = "main"
repo := gittest.ScaffoldGitRepository(t, gittest.ScaffoldGitRepositoryWithOnlyInitialCommit())
repo := gittest.ScaffoldGitRepository(t)
moduleIdentityInHEAD, err := bufmoduleref.NewModuleIdentity("buf.build", "acme", "foo")
require.NoError(t, err)
prepareGitRepoBackfillTags(t, repo, moduleIdentityInHEAD)
Expand Down
7 changes: 2 additions & 5 deletions private/buf/bufsync/commits_to_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

"github.com/bufbuild/buf/private/buf/bufsync"
"github.com/bufbuild/buf/private/bufpkg/bufmodule/bufmoduleref"
"github.com/bufbuild/buf/private/pkg/command"
"github.com/bufbuild/buf/private/pkg/git/gittest"
"github.com/bufbuild/buf/private/pkg/storage/storagegit"
"github.com/stretchr/testify/require"
Expand All @@ -34,9 +33,8 @@ func TestCommitsToSyncWithNoPreviousSyncPoints(t *testing.T) {
require.NoError(t, err)
moduleIdentityOverride, err := bufmoduleref.NewModuleIdentity("buf.build", "acme", "bar")
require.NoError(t, err)
repo := gittest.ScaffoldGitRepository(t, gittest.ScaffoldGitRepositoryWithOnlyInitialCommit())
runner := command.NewRunner()
prepareGitRepoSyncWithNoPreviousSyncPoints(t, runner, repo, moduleIdentityInHEAD, gittest.DefaultBranch)
repo := gittest.ScaffoldGitRepository(t)
prepareGitRepoSyncWithNoPreviousSyncPoints(t, repo, moduleIdentityInHEAD, gittest.DefaultBranch)
type testCase struct {
name string
branch string
Expand Down Expand Up @@ -104,7 +102,6 @@ func TestCommitsToSyncWithNoPreviousSyncPoints(t *testing.T) {
// | └o (baz)
func prepareGitRepoSyncWithNoPreviousSyncPoints(
t *testing.T,
runner command.Runner,
repo gittest.Repository,
moduleIdentity bufmoduleref.ModuleIdentity,
defaultBranchName string,
Expand Down
2 changes: 1 addition & 1 deletion private/buf/bufsync/prepare_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestPrepareSyncDuplicateIdentities(t *testing.T) {
func(tc testCase) {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
repo := gittest.ScaffoldGitRepository(t, gittest.ScaffoldGitRepositoryWithOnlyInitialCommit())
repo := gittest.ScaffoldGitRepository(t)
prepareGitRepoMultiModule(t, repo, tc.modulesIdentitiesInHEAD)
var moduleDirs []string
for moduleDir := range tc.modulesIdentitiesInHEAD {
Expand Down

0 comments on commit 062e671

Please sign in to comment.