Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Aug 22, 2023
1 parent 5389ed2 commit bb74fd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions database/executable/executable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,5 @@ type AnyArgument struct{}

// Match satisfies sqlmock.Argument interface.
func (a AnyArgument) Match(v driver.Value) bool {
if v != nil {
return true
}

return false
return v != nil
}
6 changes: 3 additions & 3 deletions database/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func testExecutables(t *testing.T, db Interface, resources *Resources) {
t.Errorf("unable to create executable %d: %v", executable.GetID(), err)
}
}
methods["CreateExecutable"] = true
methods["CreateBuildExecutable"] = true

// pop executables for builds
for _, executable := range resources.Executables {
Expand Down Expand Up @@ -1916,12 +1916,12 @@ func newResources() *Resources {
executableOne := new(library.BuildExecutable)
executableOne.SetID(1)
executableOne.SetBuildID(1)
executableOne.SetData([]byte("version: 1"))
executableOne.SetData([]byte("foo"))

executableTwo := new(library.BuildExecutable)
executableTwo.SetID(2)
executableTwo.SetBuildID(2)
executableTwo.SetData([]byte("version: 2"))
executableTwo.SetData([]byte("foo"))

deploymentOne := new(library.Deployment)
deploymentOne.SetID(1)
Expand Down

0 comments on commit bb74fd9

Please sign in to comment.