* enable cache for build, closes #8 * goimports * lint fixes Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2
store/cache/cache_test.go
vendored
2
store/cache/cache_test.go
vendored
@@ -5,9 +5,9 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/unistack-org/micro/v3/store"
|
||||
"github.com/unistack-org/micro/v3/store/file"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func cleanup(db string, s store.Store) {
|
||||
|
@@ -11,9 +11,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/lib/pq"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/unistack-org/micro/v3/logger"
|
||||
"github.com/unistack-org/micro/v3/store"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// DefaultDatabase is the namespace that the sql store
|
||||
|
@@ -3,6 +3,7 @@ package cockroach
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -11,6 +12,9 @@ import (
|
||||
)
|
||||
|
||||
func TestSQL(t *testing.T) {
|
||||
if len(os.Getenv("IN_TRAVIS_CI")) > 0 {
|
||||
t.Skip()
|
||||
}
|
||||
connection := fmt.Sprintf(
|
||||
"host=%s port=%d user=%s sslmode=disable dbname=%s",
|
||||
"localhost",
|
||||
|
@@ -38,11 +38,6 @@ type fileStore struct {
|
||||
dir string
|
||||
}
|
||||
|
||||
type fileHandle struct {
|
||||
key string
|
||||
db *bolt.DB
|
||||
}
|
||||
|
||||
// record stored by us
|
||||
type record struct {
|
||||
Key string
|
||||
|
@@ -7,9 +7,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/unistack-org/micro/v3/store"
|
||||
"github.com/patrickmn/go-cache"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/unistack-org/micro/v3/store"
|
||||
)
|
||||
|
||||
// NewStore returns a memory store
|
||||
|
Reference in New Issue
Block a user