Skip to content

Commit

Permalink
fix test request
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Jul 4, 2024
1 parent 261f90a commit 6db8017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo/licensing/h_q.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def perform_request
Avo.logger.debug "Performing request to avohq.io API to check license availability." if Rails.env.development?

if Rails.env.test?
OpenStruct.new({code: 200, parsed_response: {id: "pro", valid: true}})
OpenStruct.new({code: 200, body: "{\"id\":\"pro\",\"valid\":true}"})
else
Avo::Licensing::Request.post ENDPOINT, body: payload.to_json, timeout: REQUEST_TIMEOUT
end
Expand Down

0 comments on commit 6db8017

Please sign in to comment.