added golangci (#59)

This commit is contained in:
Michał Matczuk committed 2018-08-07 16:16:24 +02:00
1 parent 2f13a81c46
commit f8424b00b9
6 files changed
+43 -42

No files matched your search

+3 -3
View File
@@ -86,13 +86,13 @@ func createKeyspace(tb testing.TB, cluster *gocql.ClusterConfig, keyspace string
c.Timeout = 30 * time.Second
session, err := c.CreateSession()
if err != nil {
panic(err)
tb.Fatal(err)
}
defer session.Close()
err = ExecStmt(session, `DROP KEYSPACE IF EXISTS `+keyspace)
if err != nil {
panic(fmt.Sprintf("unable to drop keyspace: %v", err))
tb.Fatalf("unable to drop keyspace: %v", err)
}
err = ExecStmt(session, fmt.Sprintf(`CREATE KEYSPACE %s
@@ -102,7 +102,7 @@ func createKeyspace(tb testing.TB, cluster *gocql.ClusterConfig, keyspace string
}`, keyspace, *flagRF))
if err != nil {
panic(fmt.Sprintf("unable to create keyspace: %v", err))
tb.Fatalf("unable to create keyspace: %v", err)
}
}