buildable test suite

pull/5428/head
Cory LaNou 2016-01-20 13:53:53 -06:00 committed by David Norton
parent 19c79af840
commit 15314111cb
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ func TestServer_BackupAndRestore(t *testing.T) {
if err := s.CreateDatabaseAndRetentionPolicy(db, newRetentionPolicyInfo(rp, 1, 0)); err != nil {
t.Fatal(err)
}
if err := s.MetaStore.SetDefaultRetentionPolicy(db, rp); err != nil {
if err := s.MetaClient.SetDefaultRetentionPolicy(db, rp); err != nil {
t.Fatal(err)
}

View File

@ -95,12 +95,12 @@ func TestContinuousQueryService_Run(t *testing.T) {
func TestContinuousQueryService_ResampleOptions(t *testing.T) {
s := NewTestService(t)
ms := NewMetaStore(t)
ms.CreateDatabase("db", "")
ms.CreateContinuousQuery("db", "cq", `CREATE CONTINUOUS QUERY cq ON db RESAMPLE EVERY 10s FOR 2m BEGIN SELECT mean(value) INTO cpu_mean FROM cpu GROUP BY time(1m) END`)
s.MetaStore = ms
mc := NewMetaClient(t)
mc.CreateDatabase("db", "")
mc.CreateContinuousQuery("db", "cq", `CREATE CONTINUOUS QUERY cq ON db RESAMPLE EVERY 10s FOR 2m BEGIN SELECT mean(value) INTO cpu_mean FROM cpu GROUP BY time(1m) END`)
s.MetaClient = mc
db, err := s.MetaStore.Database("db")
db, err := s.MetaClient.Database("db")
if err != nil {
t.Fatal(err)
}