Skip to content

Commit 4d4f99a

Browse files
committed
fix tests
1 parent e7f9805 commit 4d4f99a

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/api/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,6 @@ impl ApiRequest {
17031703
pipeline_env: Option<String>,
17041704
global_headers: Option<Vec<String>>,
17051705
) -> ApiResult<Self> {
1706-
debug!("request {} {}", method, url);
17071706

17081707
let mut headers = curl::easy::List::new();
17091708
headers.append("Expect:").ok();
@@ -1834,7 +1833,6 @@ impl ApiRequest {
18341833
let body = self.body.as_deref();
18351834
let (status, headers) =
18361835
send_req(&mut self.handle, out, body, self.progress_bar_mode.clone())?;
1837-
debug!("response status: {}", status);
18381836
Ok(ApiResponse {
18391837
status,
18401838
headers,

tests/integration/_cases/logs/logs-list-no-logs-found.trycmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```
2-
$ sentry-cli logs list --org wat-org --project 12345 --max-rows 1
2+
$ sentry-cli logs list --org wat-org --project 12345
33
? success
44
No logs found
55

tests/integration/logs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ fn command_logs_with_api_calls() {
1515
}
1616

1717
#[test]
18-
fn command_logs_basic() {
18+
fn command_logs_no_logs_found() {
1919
TestManager::new()
2020
.mock_endpoint(
2121
MockEndpointBuilder::new(
2222
"GET",
23-
"/api/0/organizations/wat-org/events/?dataset=logs&field=sentry.item_id&field=trace&field=severity&field=timestamp&field=message&project=12345&per_page=1&statsPeriod=90d&sort=-timestamp"
23+
"/api/0/organizations/wat-org/events/?dataset=logs&field=sentry.item_id&field=trace&field=severity&field=timestamp&field=message&project=12345&per_page=100&statsPeriod=90d&sort=-timestamp"
2424
)
2525
.with_response_body(r#"{"data": []}"#),
2626
)

0 commit comments

Comments
 (0)