diff --git a/sda/cmd/api/api_test.go b/sda/cmd/api/api_test.go index 9a11f89d8..a8b711c3f 100644 --- a/sda/cmd/api/api_test.go +++ b/sda/cmd/api/api_test.go @@ -386,6 +386,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,