Skip to content

Commit

Permalink
Update serde tokenization
Browse files Browse the repository at this point in the history
Recent Serde changes ([1], [2]) changed the internal representation of
enums, breaking our test.

[1]: serde-rs/serde#2496
[2]: serde-rs/serde#2505
  • Loading branch information
tgeoghegan committed Aug 15, 2023
1 parent a9df3db commit 11230c3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions aggregator_api/src/lib.rs
Expand Up @@ -1726,7 +1726,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("ZW5jb2RlZA"),
Token::StructEnd,
Expand Down Expand Up @@ -1841,7 +1844,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
Token::StructEnd,
Expand All @@ -1852,7 +1858,10 @@ mod tests {
len: 2,
},
Token::Str("type"),
Token::Str("DapAuth"),
Token::UnitVariant {
name: "AuthenticationToken",
variant: "DapAuth",
},
Token::Str("token"),
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
Token::StructEnd,
Expand Down

0 comments on commit 11230c3

Please sign in to comment.