You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let(:succeeded_task_keys){[*enqueued_task_keys,'details','duration','startedAt','finishedAt']}it'gets a task of the Meilisearch instance'dotask=client.task(0)expect(task).tobe_a(Hash)expect(task['uid']).toeq(0)expect(task.keys).toinclude(*succeeded_task_keys)end
expects succeeded task (specifically task 0) to have the details key, which is not present on snapshotCreate tasks, causing the test to fail until something happens to change what task 0 is (starting a new clean meilisearch instance). See related issue: meilisearch/documentation#3177
Reproduction:
require"bundler/inline"gemfile(true)dosource"https://rubygems.org"gem'minitest','~> 5.25','>= 5.25.4'gem'meilisearch',ENV["MEILISEARCH_RUBY_VERSION"] || "~> 0.31.0"# If you want to test against changes that have been not released yet# gem "meilisearch", github: "meilisearch/meilisearch-ruby", branch: "main"# Open a debugging session with the `debugger` method# gem 'debug'endrequire'minitest/autorun'URL=format('http://%<host>s:%<port>s',host: ENV.fetch('MEILISEARCH_URL','localhost'),port: ENV.fetch('MEILISEARCH_PORT','7700'))
$client =Meilisearch::Client.new(URL,'masterKey',{timeout: 2,max_retries: 1})classBugTest < Minitest::Testdeftest_snapshot_missing_details
$client.create_snapshottask= $client.task(0)asserttask.key?("details")endend
The text was updated successfully, but these errors were encountered:
This test:
expects succeeded task (specifically task 0) to have the
details
key, which is not present on snapshotCreate tasks, causing the test to fail until something happens to change what task 0 is (starting a new clean meilisearch instance). See related issue: meilisearch/documentation#3177Reproduction:
The text was updated successfully, but these errors were encountered: