summaryrefslogtreecommitdiff
path: root/srv/src/post/store_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/post/store_test.go')
-rw-r--r--srv/src/post/store_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/srv/src/post/store_test.go b/srv/src/post/store_test.go
index 1b4fb30..3ccf5d7 100644
--- a/srv/src/post/store_test.go
+++ b/srv/src/post/store_test.go
@@ -38,14 +38,14 @@ func newStoreTestHarness(t *testing.T) storeTestHarness {
clock := clock.NewMock(time.Now().UTC().Truncate(1 * time.Hour))
- store, err := NewStore(StoreParams{
- DataDir: dataDir,
- })
- assert.NoError(t, err)
+ db, err := NewSQLDB(dataDir)
+ if err != nil {
+ t.Fatal(err)
+ }
- t.Cleanup(func() {
- assert.NoError(t, store.Close())
- })
+ t.Cleanup(func() { db.Close() })
+
+ store := NewStore(db)
return storeTestHarness{
clock: clock,