Skip to content

Commit

Permalink
updates for broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Aug 18, 2024
1 parent 8f5ca5d commit 1b964b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/models/bot/smooch_7_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def teardown
end

test "should include claim_description_content in smooch search" do
WebMock.stub_request(:post, 'http://alegre:3100/text/similarity/').to_return(body: {}.to_json)
WebMock.stub_request(:post, 'http://alegre:3100/similarity/async/image').to_return(body: {}.to_json)
RequestStore.store[:skip_cached_field_update] = false
t = create_team
m = create_uploaded_image
Expand Down
4 changes: 2 additions & 2 deletions test/models/explainer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def setup
}

# Index two paragraphs and title when the explainer is created
Bot::Alegre.stubs(:request).with('post', '/text/similarity/', anything).times(3)
Bot::Alegre.stubs(:request).with('post', '/similarity/async/text', anything).times(3)
Bot::Alegre.stubs(:request).with('delete', '/text/similarity/', anything).never
ex = create_explainer description: description

# Update the index when paragraphs change
Bot::Alegre.stubs(:request).with('post', '/text/similarity/', anything).times(2)
Bot::Alegre.stubs(:request).with('post', '/similarity/async/text', anything).times(2)
Bot::Alegre.stubs(:request).with('delete', '/text/similarity/', anything).once
ex = Explainer.find(ex.id)
ex.description = 'Now this is the only paragraph'
Expand Down

0 comments on commit 1b964b6

Please sign in to comment.