Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Jan 13, 2025
1 parent bc3400c commit 76366bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions githubgen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func Test_run(t *testing.T) {
allowlistFilePath string
generators fake.MockGenerator
distributions []datatype.DistributionData
repoName string
defaultCodeOwers string
githubOrg string
}
Expand All @@ -45,7 +44,6 @@ func Test_run(t *testing.T) {
Maintainers: nil,
},
},
repoName: "my-repo",
defaultCodeOwers: "some-code-owners",
githubOrg: "some-org",
},
Expand All @@ -56,7 +54,7 @@ func Test_run(t *testing.T) {
// nolint:govet
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := run(tt.args.folder, tt.args.allowlistFilePath, tt.args.repoName, []datatype.Generator{&tt.args.generators}, tt.args.distributions, tt.args.defaultCodeOwers, tt.args.githubOrg); (err != nil) != tt.wantErr {
if err := run(tt.args.folder, tt.args.allowlistFilePath, []datatype.Generator{&tt.args.generators}, tt.args.distributions, tt.args.defaultCodeOwers, tt.args.githubOrg); (err != nil) != tt.wantErr {
t.Errorf("run() error = %v, wantErr %v", err, tt.wantErr)
}
require.Equal(t, len(tt.args.generators.GenerateCalls()), 1)
Expand Down

0 comments on commit 76366bb

Please sign in to comment.