diff options
Diffstat (limited to 'src/hub/src/spreadspace.org/sfive/s5store_test.go')
-rw-r--r-- | src/hub/src/spreadspace.org/sfive/s5store_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5store_test.go b/src/hub/src/spreadspace.org/sfive/s5store_test.go index c3609da..ce4ce0f 100644 --- a/src/hub/src/spreadspace.org/sfive/s5store_test.go +++ b/src/hub/src/spreadspace.org/sfive/s5store_test.go @@ -18,11 +18,11 @@ func TestGetFilter(t *testing.T) { } func TestAppend(t *testing.T) { - store, err := NewStore() + store, err := NewStore("file:memdb1?mode=memory&cache=shared") if err != nil { t.Errorf("Failed to initialize: %v", err) } - defer EatDataAndClose(store) + defer store.Close() startTime := time.Date(2014, time.August, 24, 14, 35, 33, 847282000, time.UTC) update := DataUpdate{Data: SourceData{BytesSent: 1, ClientCount: 3, BytesReceived: 1}, StartTime: startTime, Duration: 5 * time.Millisecond} @@ -54,11 +54,11 @@ func TestAppend(t *testing.T) { } func IgnoreTestCount(t *testing.T) { - store, err := NewStore() + store, err := NewStore("file:memdb1?mode=memory&cache=shared") if err != nil { t.Errorf("Failed to initialize: %v", err) } - defer EatDataAndClose(store) + defer store.Close() if 0 != store.CountClients(nil) { t.Errorf("Failed to count correctly.") |