Skip to content

Generation shouldn't fail if there is old (not actually locked) utbot… #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Vassiliy-Kudryashov
Copy link
Member

….lock file

Description

Existing but not locked utbot.lock shouldn't prevent generation to start.

Type of Change

  • Minor bug fix (non-breaking small changes)

How Has This Been Tested?

Manual Scenario

  1. Create an empty file {HOME}/.utbot/utbot.lock
  2. Try to start generation
    Expected behavior: Generation starts, file will be re-written with currrent timestamp inside.
    Observed behavior: Generation fails as the file cannot be open to write with StandardOpenOption.CREATE_NEW for existing file.

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings

@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit d31e90f into main Nov 11, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the Vassiliy-Kudryashov/fix_for_existing_lock_file branch November 11, 2022 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants