@@ -69,7 +69,7 @@ func checkFailed(t *testing.T, store *Store, expected ...*Task) {
6969func TestDatabaseNotLocked (t * testing.T ) {
7070 require := require .New (t )
7171
72- db , cleanup := localdb .Fixture ()
72+ db , cleanup := localdb .Fixture (t )
7373 defer cleanup ()
7474
7575 store := NewStore (db )
@@ -91,7 +91,7 @@ func TestDatabaseNotLocked(t *testing.T) {
9191func TestAddPending (t * testing.T ) {
9292 require := require .New (t )
9393
94- db , cleanup := localdb .Fixture ()
94+ db , cleanup := localdb .Fixture (t )
9595 defer cleanup ()
9696
9797 store := NewStore (db )
@@ -106,7 +106,7 @@ func TestAddPending(t *testing.T) {
106106func TestAddPendingTwiceReturnsErrTaskExists (t * testing.T ) {
107107 require := require .New (t )
108108
109- db , cleanup := localdb .Fixture ()
109+ db , cleanup := localdb .Fixture (t )
110110 defer cleanup ()
111111
112112 store := NewStore (db )
@@ -120,7 +120,7 @@ func TestAddPendingTwiceReturnsErrTaskExists(t *testing.T) {
120120func TestAddFailed (t * testing.T ) {
121121 require := require .New (t )
122122
123- db , cleanup := localdb .Fixture ()
123+ db , cleanup := localdb .Fixture (t )
124124 defer cleanup ()
125125
126126 store := NewStore (db )
@@ -135,7 +135,7 @@ func TestAddFailed(t *testing.T) {
135135func TestAddFailedTwiceReturnsErrTaskExists (t * testing.T ) {
136136 require := require .New (t )
137137
138- db , cleanup := localdb .Fixture ()
138+ db , cleanup := localdb .Fixture (t )
139139 defer cleanup ()
140140
141141 store := NewStore (db )
@@ -149,7 +149,7 @@ func TestAddFailedTwiceReturnsErrTaskExists(t *testing.T) {
149149func TestStateTransitions (t * testing.T ) {
150150 require := require .New (t )
151151
152- db , cleanup := localdb .Fixture ()
152+ db , cleanup := localdb .Fixture (t )
153153 defer cleanup ()
154154
155155 store := NewStore (db )
@@ -172,7 +172,7 @@ func TestStateTransitions(t *testing.T) {
172172func TestMarkTaskNotFound (t * testing.T ) {
173173 require := require .New (t )
174174
175- db , cleanup := localdb .Fixture ()
175+ db , cleanup := localdb .Fixture (t )
176176 defer cleanup ()
177177
178178 store := NewStore (db )
@@ -186,7 +186,7 @@ func TestMarkTaskNotFound(t *testing.T) {
186186func TestRemove (t * testing.T ) {
187187 require := require .New (t )
188188
189- db , cleanup := localdb .Fixture ()
189+ db , cleanup := localdb .Fixture (t )
190190 defer cleanup ()
191191
192192 store := NewStore (db )
@@ -205,7 +205,7 @@ func TestRemove(t *testing.T) {
205205func TestDelay (t * testing.T ) {
206206 require := require .New (t )
207207
208- db , cleanup := localdb .Fixture ()
208+ db , cleanup := localdb .Fixture (t )
209209 defer cleanup ()
210210
211211 store := NewStore (db )
@@ -230,7 +230,7 @@ func TestDelay(t *testing.T) {
230230func TestFind (t * testing.T ) {
231231 require := require .New (t )
232232
233- db , cleanup := localdb .Fixture ()
233+ db , cleanup := localdb .Fixture (t )
234234 defer cleanup ()
235235
236236 store := NewStore (db )
@@ -249,7 +249,7 @@ func TestFind(t *testing.T) {
249249func TestFindEmpty (t * testing.T ) {
250250 require := require .New (t )
251251
252- db , cleanup := localdb .Fixture ()
252+ db , cleanup := localdb .Fixture (t )
253253 defer cleanup ()
254254
255255 store := NewStore (db )
0 commit comments