[Native][tests] Don't warn when committed TestFile is committed again
Actually, there is nothing wrong with calling commit() again: Some TestFiles are created as uncommitted and require calling commit(), while others are created as committed from the very beginning.
This commit is contained in:
@@ -52,7 +52,9 @@ internal class TestFile<M : TestModule> private constructor(
|
||||
location.writeText(state.text)
|
||||
this.state = State.Committed
|
||||
}
|
||||
is State.Committed -> System.err.println("$this has been committed again. Need to check why this had happened.")
|
||||
is State.Committed -> {
|
||||
// Nothing to do. File is already saved to the disk.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user