bitsail icon indicating copy to clipboard operation
bitsail copied to clipboard

[BitSail-465][Test] Fix NullPointerException of testCreateGenericExecutor method

Open Jake-00 opened this issue 2 years ago • 2 comments

…nericExecutor

Prepare a Pull Request

  • Title: [BitSail-465][Fix] fix NullPointerException of function testCreateGenericExecutor

  • Fixes: #465

Please change the PR title and the related issue number refer to the following description.

The above XYZ must be replaced with the actual GitHub Issue number, indicating that the current PR is used to solve the problem described in this Issue.

If you don't find an Issue that matches your changes, please Create Issue first, then commit this PR.

For more info about the contributing guide, see: Contributing Guide

Motivation

To deal with NullPointerException happening to function testCreateGenericExecutor().

Modifications

  1. The key of this problem is that "additional-files" cannot be loaded to this.transferableFiles, constructor would operate in new commit.
  2. To test setting's content is the job of GenericExecutorSettingTest, so I delete the compare of executortransferableFiles.

Describe the modifications you've done.

Verifying this change

Please pick either of the following options.

  • [ ] This change is a trivial rework/code cleanup without any test coverage.

  • [x] This change is already covered by existing tests, such as: (please describe tests, example:)

    • com.bytedance.bitsail.core.EngineTest#testRunEngine
  • [ ] This change added tests and can be verified as follows:

    (example:)

    • Added unit tests for parsing of configs
    • Optimized integration tests for recovery after task failure

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a follow-up issue for adding the documentation

Jake-00 avatar Apr 11 '23 06:04 Jake-00

@hk-lrzy plz take a look, thx ☕

Jake-00 avatar Apr 11 '23 06:04 Jake-00

hi @hk-lrzy , could you help to review this pr

Jake-00 avatar Jun 08 '23 04:06 Jake-00