Closed dualbus closed 5 years ago
OK, so the CI failure is expected, since this is just the test case without an actual fix:
Finished in 8.082930s, 10.6397 runs/s, 30.9294 assertions/s.
1) Error:
Sfn::Planner::Sfn::Planner::Aws::Parameters AllowedValues::AllowedValues have a different order#test_0001_does not crash with: NoMethodError: undefined method `last' for nil:NilClass:
NoMethodError: undefined method `last' for nil:NilClass
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:518:in `block in diff_init'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:513:in `tap'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:513:in `diff_init'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:541:in `register_diff'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:447:in `block in run_stack_diff'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:446:in `each'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:446:in `run_stack_diff'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:374:in `plan_stack'
/home/travis/build/sparkleformation/sfn/lib/sfn/planner/aws.rb:252:in `generate_plan'
/home/travis/build/sparkleformation/sfn/test/specs/planner_spec.rb:485:in `block (5 levels) in <top (required)>'
86 runs, 250 assertions, 0 failures, 1 errors, 1 skips
Let me know if you want me to also send a fix for this. I'd need some help understanding how diff_init should behave with arrays though.
@dualbus Thanks for reporting this and the PR with reproduction!
The stack trace of the error: