diff --git a/lib/galaxy_test/api/test_histories.py b/lib/galaxy_test/api/test_histories.py index 6a746805ff1d..11b7a5bcf486 100644 --- a/lib/galaxy_test/api/test_histories.py +++ b/lib/galaxy_test/api/test_histories.py @@ -586,7 +586,7 @@ def test_sharing_private_history_makes_datasets_public(self): # Other users cannot access the dataset with self._different_user(): show_response = self._get(f"datasets/{hda_id}") - self._assert_status_code_is(show_response, 400) + self._assert_status_code_is(show_response, 403) sharing_response = self._set_resource_sharing(history_id, "publish") assert sharing_response["published"] is True