mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-05 11:21:58 -05:00
27 lines
507 B
Go
27 lines
507 B
Go
package chunks
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
func TestHttpStoreTestSuite(t *testing.T) {
|
|
suite.Run(t, &HttpStoreTestSuite{})
|
|
}
|
|
|
|
type HttpStoreTestSuite struct {
|
|
ChunkStoreTestSuite
|
|
server *HttpStoreServer
|
|
}
|
|
|
|
func (suite *HttpStoreTestSuite) SetupTest() {
|
|
suite.store = NewHttpStoreClient("http://localhost:8000")
|
|
suite.server = NewHttpStoreServer(&MemoryStore{}, 8000)
|
|
go suite.server.Start()
|
|
}
|
|
|
|
func (suite *HttpStoreTestSuite) TearDownTest() {
|
|
suite.server.Stop()
|
|
}
|