Create a testing package for common utilities
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
a2cd015533
commit
b4ac128673
5 changed files with 11 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ import (
|
|||
"fmt"
|
||||
dbCommon "garm/database/common"
|
||||
runnerErrors "garm/errors"
|
||||
"garm/util"
|
||||
garmTesting "garm/internal/testing"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
|
@ -31,7 +31,7 @@ type CtrlTestSuite struct {
|
|||
}
|
||||
|
||||
func (s *CtrlTestSuite) SetupTest() {
|
||||
db, err := NewSQLDatabase(context.Background(), util.GetTestSqliteDBConfig(s.T()))
|
||||
db, err := NewSQLDatabase(context.Background(), garmTesting.GetTestSqliteDBConfig(s.T()))
|
||||
if err != nil {
|
||||
s.FailNow(fmt.Sprintf("failed to create db connection: %s", err))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue