Skip to content

Commit

Permalink
fix panic assertio
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Nov 6, 2024
1 parent 1af757b commit 3271d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/internal_event_handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,12 @@ func TestSideEffect(t *testing.T) {

func TestGetVersion_validation(t *testing.T) {
t.Run("version < minSupported", func(t *testing.T) {
assert.PanicsWithValue(t, `Workflow code removed support of version 1. for \"test\" changeID. The oldest supported version is 2`, func() {
assert.PanicsWithValue(t, `Workflow code removed support of version 1. for "test" changeID. The oldest supported version is 2`, func() {
validateVersion("test", 1, 2, 3)
})
})
t.Run("version > maxSupported", func(t *testing.T) {
assert.PanicsWithValue(t, `Workflow code is too old to support version 3 for \"test\" changeID. The maximum supported version is 2`, func() {
assert.PanicsWithValue(t, `Workflow code is too old to support version 3 for "test" changeID. The maximum supported version is 2`, func() {
validateVersion("test", 3, 1, 2)
})
})
Expand Down

0 comments on commit 3271d90

Please sign in to comment.