From bb74fd9a52c94a71c87eda4de96b530248352991 Mon Sep 17 00:00:00 2001 From: ecrupper Date: Tue, 22 Aug 2023 14:42:56 -0500 Subject: [PATCH] try this --- database/executable/executable_test.go | 6 +----- database/integration_test.go | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/database/executable/executable_test.go b/database/executable/executable_test.go index fff51f356..20ebd6b49 100644 --- a/database/executable/executable_test.go +++ b/database/executable/executable_test.go @@ -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 } diff --git a/database/integration_test.go b/database/integration_test.go index 79ed59033..c87dec0ae 100644 --- a/database/integration_test.go +++ b/database/integration_test.go @@ -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 { @@ -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)