Revert "Try to prevent flappy integration test failures"

This reverts commit ccbd56e625.
This commit is contained in:
René Pfeuffer
2021-01-18 10:52:08 +01:00
parent d695925d38
commit 32e09f5874

View File

@@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package sonia.scm.it.utils;
import com.google.common.base.Charsets;
@@ -77,13 +77,7 @@ public class RepositoryUtil {
public static Changeset createAndCommitFile(RepositoryClient repositoryClient, String username, String fileName, String content) throws IOException {
writeAndAddFile(repositoryClient, fileName, content);
Changeset commit = commit(repositoryClient, username, "added " + fileName);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
// nothing to do
}
return commit;
return commit(repositoryClient, username, "added " + fileName);
}
/**