summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-03-26 17:17:57 +0100
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-03-26 17:17:57 +0100
commit60c28a5fe0fa0f93043f6037f68912c7803b6318 (patch)
tree9ad875b3ef07c5704468575cf9c6ca7741807e0d
parent6ac86054edb96e6ad0fee55452df21d133042db8 (diff)
downloadgitlab-ce-60c28a5fe0fa0f93043f6037f68912c7803b6318.tar.gz
GitalyClient spec: Remove the diff between CE/EE
-rw-r--r--spec/lib/gitlab/gitaly_client/ref_service_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/gitaly_client/ref_service_spec.rb b/spec/lib/gitlab/gitaly_client/ref_service_spec.rb
index 400d426c949..0dab39575b9 100644
--- a/spec/lib/gitlab/gitaly_client/ref_service_spec.rb
+++ b/spec/lib/gitlab/gitaly_client/ref_service_spec.rb
@@ -89,6 +89,16 @@ describe Gitlab::GitalyClient::RefService do
end
end
+ describe '#list_new_blobs' do
+ it 'raises DeadlineExceeded when timeout is too small' do
+ newrev = '54fcc214b94e78d7a41a9a8fe6d87a5e59500e51'
+
+ expect do
+ client.list_new_blobs(newrev, dynamic_timeout: 0.001)
+ end.to raise_error(GRPC::DeadlineExceeded)
+ end
+ end
+
describe '#local_branches' do
it 'sends a find_local_branches message' do
expect_any_instance_of(Gitaly::RefService::Stub)