17417: Merge branch 'main' into 17417-add-arm64
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm_test.go
index e7a89db23c8743b3e2934a5c26f12a446a5bd6a9..cf83257dad5a86d77826f0cd07154389bc40efc5 100644 (file)
@@ -42,7 +42,8 @@ type IntegrationSuite struct {
 }
 
 func (s *IntegrationSuite) SetUpTest(c *C) {
-       arvadostest.StartAPI()
+       arvadostest.ResetEnv()
+       arvadostest.ResetDB(c)
        os.Setenv("ARVADOS_API_TOKEN", arvadostest.Dispatch1Token)
        s.disp = Dispatcher{}
        s.disp.cluster = &arvados.Cluster{}
@@ -52,7 +53,7 @@ func (s *IntegrationSuite) SetUpTest(c *C) {
 
 func (s *IntegrationSuite) TearDownTest(c *C) {
        arvadostest.ResetEnv()
-       arvadostest.StopAPI()
+       arvadostest.ResetDB(c)
 }
 
 type slurmFake struct {