Skip to content

Commit f5e3845

Browse files
estolfopicandocodigo
authored andcommitted
Transport object is the http adapter so expected args don't change
1 parent 25d18c6 commit f5e3845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch/spec/unit/opaque_id_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
it 'uses x-opaque-id on a request' do
3030
client.search(opaque_id: '12345')
3131
expect(transport).to have_received(:perform_request)
32-
.with('GET', '_search', {}, nil, { 'X-Opaque-Id' => '12345' }, { endpoint: 'search' })
32+
.with('GET', '_search', {}, nil, { 'X-Opaque-Id' => '12345' })
3333
end
3434
end
3535

@@ -42,7 +42,7 @@
4242
it 'uses x-opaque-id on a request' do
4343
expect { client.search(opaque_id: '12345') }.not_to raise_error
4444
expect(transport).to have_received(:perform_request)
45-
.with('GET', '_search', {}, nil, { 'X-Opaque-Id' => 'elastic_cloud12345' }, { endpoint: 'search' })
45+
.with('GET', '_search', {}, nil, { 'X-Opaque-Id' => 'elastic_cloud12345' })
4646
end
4747
end
4848
end

0 commit comments

Comments
 (0)