[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:
Dmitriy Dolovov
2021-11-13 13:46:43 +03:00
parent 407e82adbb
commit 9c70d5088c
@@ -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.
}
}
}