Skip to content

Commit

Permalink
fix: update test to only check major/minor/patch (#172)
Browse files Browse the repository at this point in the history
Migrations table doesn't track prerelease portion of version, so we should
explicitly check the bits that it does track
  • Loading branch information
superlinkx authored Oct 27, 2023
1 parent 6bfa11f commit 296d9b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ func TestMigrator_Migrate(t *testing.T) {

ver, err := testMigrator.LatestMigration()
require.Nil(t, err)
assert.Equal(t, version.GetVersion(), ver.Version())
assert.Equal(t, version.GetVersion().Major, ver.Version().Major)
assert.Equal(t, version.GetVersion().Minor, ver.Version().Minor)
assert.Equal(t, version.GetVersion().Patch, ver.Version().Patch)
})
}

0 comments on commit 296d9b3

Please sign in to comment.