Skip to content

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

Merged
Vassiliy-Kudryashov merged 1 commit intomainfrom
Vassiliy-Kudryashov/fix_for_existing_lock_file
Nov 11, 2022
Merged

Generation shouldn't fail if there is old (not actually locked) utbot…#1350
Vassiliy-Kudryashov merged 1 commit intomainfrom
Vassiliy-Kudryashov/fix_for_existing_lock_file

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