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 | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5store_test.go b/src/hub/src/spreadspace.org/sfive/s5store_test.go index 27732a5..fe43bf5 100644 --- a/src/hub/src/spreadspace.org/sfive/s5store_test.go +++ b/src/hub/src/spreadspace.org/sfive/s5store_test.go @@ -42,47 +42,6 @@ func TestAppend(t *testing.T) { t.Errorf("Failed to append: %v", err) return } - - // stats, err := store.GetStats(nil) - // if err != nil { - // t.Errorf("Failed to get stats: %v", err) - // } else { - // clientCount := int(stats.ClientCount) - // updateCount := stats.UpdateCount - // if 3 != clientCount { - // t.Errorf("Failed fo append, invalid number of clients, 3 != %v", clientCount) - // } - // if 1 != updateCount { - // t.Errorf("Failed to append, invalid number of updates, 1 != %v", updateCount) - // } - // } - - // queryStartTime := time.Date(2015, time.December, 24, 1, 1, 1, 0, time.UTC) - // filterStruct := StatsFilter{start: &queryStartTime} - // stats, err = store.GetStats(&filterStruct) - // if err != nil { - // t.Errorf("Failed to get stats: %v", err) - // } else { - // updateCount := stats.UpdateCount - // if 0 != updateCount { - // t.Errorf("Failed to filter entries by start time, 0 != %v", updateCount) - // } - // } -} - -func TestCount(t *testing.T) { - os.Remove(__boltPath) - store, err := NewStore(__sqlitePath, __boltPath) - if err != nil { - t.Errorf("Failed to initialize: %v", err) - } - defer store.Close() - - stats, err := store.GetStats(nil) - clientCount := int(stats.ClientCount) - if 0 != clientCount { - t.Errorf("Failed to count correctly.") - } } func TestGetUpdatesAfter(t *testing.T) { |