Skip to content

Commit

Permalink
[api][tests] truncate sda.files before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbygdell committed Jul 30, 2024
1 parent 2574b55 commit 8d8b7e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sda/cmd/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ func (suite *TestSuite) SetupTest() {
Conf.API.DB, err = database.NewSDAdb(Conf.Database)
assert.NoError(suite.T(), err)

_, err = Conf.API.DB.DB.Exec("TRUNCATE sda.files CASCADE")
assert.NoError(suite.T(), err)

Conf.Broker = broker.MQConf{
Host: "localhost",
Port: mqPort,
Expand Down

0 comments on commit 8d8b7e3

Please sign in to comment.