Skip to content

Commit

Permalink
test multistore in snapshot roundtrip test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Sep 8, 2023
1 parent 230ef56 commit daeb499
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion memiavl/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func TestSnapshotImportExport(t *testing.T) {
func TestDBSnapshotRestore(t *testing.T) {
db, err := Load(t.TempDir(), Options{
CreateIfMissing: true,
InitialStores: []string{"test"},
InitialStores: []string{"test", "test2"},
AsyncCommitBuffer: -1,
})
require.NoError(t, err)
Expand All @@ -144,6 +144,10 @@ func TestDBSnapshotRestore(t *testing.T) {
Name: "test",
Changeset: changes,
},
{
Name: "test2",
Changeset: changes,
},
}
require.NoError(t, db.ApplyChangeSets(cs))
_, err := db.Commit()
Expand Down

0 comments on commit daeb499

Please sign in to comment.