Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Sep 27, 2023
1 parent ba8b1d2 commit 5327ecf
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions kubo-rpc/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ mod tests {
expect![[r#"
BadRequest(
Error {
message: "recusive pinning is not supported",
message: "recursive pinning is not supported",
code: 0.0,
typ: "error",
},
Expand Down Expand Up @@ -919,8 +919,8 @@ mod tests {
expect![[r#"
Success(
DagImportPost200Response {
root: DagImportPost200ResponseRoot {
cid: DagImportPost200ResponseRootCid {
root: DagPutPost200Response {
cid: DagPutPost200ResponseCid {
slash: "bafyreihyrpefhacm6kkp4ql6j6udakdit7g3dmkzfriqfykhjw6cad5lrm",
},
},
Expand Down Expand Up @@ -963,7 +963,9 @@ mod tests {
expect![[r#"
Success(
DagPutPost200Response {
cid: "bafyreidufmzzejc3p7gmh6ivp4fjvca5jfazk57nu6vdkvki4c4vpja724",
cid: DagPutPost200ResponseCid {
slash: "bafyreidufmzzejc3p7gmh6ivp4fjvca5jfazk57nu6vdkvki4c4vpja724",
},
},
)
"#]]
Expand Down Expand Up @@ -1002,7 +1004,9 @@ mod tests {
expect![[r#"
Success(
DagPutPost200Response {
cid: "baguqeera4iuxsgqusw3ctry362niptivjyio6dxnsn5afctijsahacub2eza",
cid: DagPutPost200ResponseCid {
slash: "baguqeera4iuxsgqusw3ctry362niptivjyio6dxnsn5afctijsahacub2eza",
},
},
)
"#]]
Expand All @@ -1023,7 +1027,7 @@ mod tests {
expect![[r#"
BadRequest(
Error {
message: "unsupported codec combination, input-codec: dag_json, store-codec: raw",
message: "unsupported codec combination, input-codec: dag-json, store-codec: raw",
code: 0.0,
typ: "error",
},
Expand All @@ -1039,7 +1043,7 @@ mod tests {
expect![[r#"
BadRequest(
Error {
message: "unsupported codec combination, input-codec: raw, store-codec: dag_cbor",
message: "unsupported codec combination, input-codec: raw, store-codec: dag-cbor",
code: 0.0,
typ: "error",
},
Expand Down

0 comments on commit 5327ecf

Please sign in to comment.