migrator_test.go 339 B

1234567891011121314151617
  1. package teststore
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/stretchr/testify/require"
  6. )
  7. func TestGetCurrentSchemaVersion(t *testing.T) {
  8. ctx := context.Background()
  9. ts := NewTestingStore(ctx, t)
  10. currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
  11. require.NoError(t, err)
  12. require.Equal(t, "0.23.1", currentSchemaVersion)
  13. }