diff --git a/tests_with_gitaly/test_repository_service.py b/tests_with_gitaly/test_repository_service.py
index 832cbfae47cdbcd8c24b74bb8527596f4bbf5ef3_dGVzdHNfd2l0aF9naXRhbHkvdGVzdF9yZXBvc2l0b3J5X3NlcnZpY2UucHk=..b8727a8625b74a9f9d2b983fd225915849fd75b8_dGVzdHNfd2l0aF9naXRhbHkvdGVzdF9yZXBvc2l0b3J5X3NlcnZpY2UucHk= 100644
--- a/tests_with_gitaly/test_repository_service.py
+++ b/tests_with_gitaly/test_repository_service.py
@@ -333,6 +333,14 @@
     assert exc_info_hg.value.code() == exc_info_git.value.code()
     assert exc_info_hg.value.details() == exc_info_git.value.details()
 
+    # edge case: empty request
+    with pytest.raises(grpc.RpcError) as exc_info_git:
+        repo_stub['git'].CreateRepositoryFromBundle(())
+    with pytest.raises(grpc.RpcError) as exc_info_hg:
+        repo_stub['hg'].CreateRepositoryFromBundle(())
+    assert exc_info_hg.value.code() == exc_info_git.value.code()
+    assert exc_info_hg.value.details() == exc_info_git.value.details()
+
 
 def test_create_bundle_from_ref_list(
         gitaly_comparison, tmpdir, server_repos_root):