Skip to content

Commit

Permalink
Merge pull request etcd-io#16458 from ahrtr/snap_20230822
Browse files Browse the repository at this point in the history
test: verify snap.Load() is sucessful
  • Loading branch information
serathius authored Aug 22, 2023
2 parents f3cc759 + 30b5c37 commit 3794dfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/cluster_downgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func verifySnapshotMembers(t *testing.T, epc *e2e.EtcdProcessCluster, expectedMe
t.Logf("Verifying snapshot for member %d", i)
ss := snap.New(epc.Cfg.Logger, datadir.ToSnapDir(epc.Procs[i].Config().DataDirPath))
snap, err := ss.Load()
require.NoError(t, err)
st := v2store.New(etcdserver.StoreClusterPrefix, etcdserver.StoreKeysPrefix)
err = st.Recovery(snap.Data)
assert.NoError(t, err)
Expand Down

0 comments on commit 3794dfd

Please sign in to comment.