Skip to content

Commit eb211ba

Browse files
committed
update octocrab dep and fix list unit tests
1 parent 09682eb commit eb211ba

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "1.2.0"
44
edition = "2021"
55

66
[dependencies]
7-
octocrab = "0.42"
7+
octocrab = "0.43"
88
concourse-resource = "0.3"
99
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"] }
1010
serde = "1.0"

src/github_issue.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,14 @@ mod tests {
473473
None,
474474
Some(vec![String::from("pdpinch")]),
475475
None,
476-
Some("open"),
477-
None,
476+
Some("closed"),
477+
Some(3),
478478
);
479479
let issue = gh_issue.main(Action::List).await;
480480
assert_eq!(
481481
issue.unwrap().number,
482-
497,
483-
"single issue #497 from multiple listed from mitodl/ol-infrastructure not returned correctly",
482+
833,
483+
"single issue #833 from multiple listed from mitodl/ol-infrastructure not returned correctly",
484484
);
485485
};
486486
let rt = tokio::runtime::Runtime::new().unwrap();

src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,12 @@ mod tests {
218218
{
219219
"owner": "mitodl",
220220
"repo": "ol-infrastructure",
221-
"assignee": "pdpinch"
221+
"assignee": "pdpinch",
222+
"milestone": 3
222223
}"#;
223224
let version_input = r#"
224225
{
225-
"state": "open"
226+
"state": "closed"
226227
}"#;
227228
// deserialize version and source for inputs
228229
let source = serde_json::from_str::<<GithubIssue as concourse_resource::Resource>::Source>(
@@ -255,7 +256,7 @@ mod tests {
255256
}"#;
256257
let version_input = r#"
257258
{
258-
"state": "closed"
259+
"state": "open"
259260
}"#;
260261
// deserialize version and source for inputs
261262
let source = serde_json::from_str::<<GithubIssue as concourse_resource::Resource>::Source>(

0 commit comments

Comments
 (0)