Files
prysm/validator/db/filesystem/migration_test.go
Bastin 92bd211e4d upgrade v6 to v7 (#15989)
* upgrade v6 to v7

* changelog

* update-go-ssz
2025-11-06 16:16:23 +00:00

28 lines
863 B
Go

package filesystem
import (
"testing"
"github.com/OffchainLabs/prysm/v7/testing/require"
)
func TestStore_RunUpMigrations(t *testing.T) {
// Just check `NewStore` does not return an error.
store, err := NewStore(t.TempDir(), nil)
require.NoError(t, err, "NewStore should not return an error")
// Just check `RunUpMigrations` does not return an error.
err = store.RunUpMigrations(t.Context())
require.NoError(t, err, "RunUpMigrations should not return an error")
}
func TestStore_RunDownMigrations(t *testing.T) {
// Just check `NewStore` does not return an error.
store, err := NewStore(t.TempDir(), nil)
require.NoError(t, err, "NewStore should not return an error")
// Just check `RunDownMigrations` does not return an error.
err = store.RunDownMigrations(t.Context())
require.NoError(t, err, "RunUpMigrations should not return an error")
}