Пример #1
0
func TestLStorage(t *testing.T) {
	t.Parallel()
	testdir, err := ioutil.TempDir("", "rocks-strata-Storage-test_")
	ensure.Nil(t, err)
	ls, err := NewLStorage(testdir)
	ensure.Nil(t, err)
	defer os.RemoveAll(testdir)
	strata.HelpTestStorage(t, ls)
}
Пример #2
0
func TestS3Storage(t *testing.T) {
	t.Parallel()
	s3 := NewMockS3(t)
	defer s3.Stop()

	s, err := NewStorageWithMockS3(s3)
	ensure.Nil(t, err)

	strata.HelpTestStorage(t, s)
}