Skip to content

Commit 58dbe9b

Browse files
committed
Update serde tokenization
Recent Serde changes ([1], [2]) changed the internal representation of enums, breaking our test. [1]: serde-rs/serde#2496 [2]: serde-rs/serde#2505
1 parent a9df3db commit 58dbe9b

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

aggregator_api/src/lib.rs

+12-3
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,10 @@ mod tests {
17261726
len: 2,
17271727
},
17281728
Token::Str("type"),
1729-
Token::Str("DapAuth"),
1729+
Token::UnitVariant {
1730+
name: "AuthenticationToken",
1731+
variant: "DapAuth",
1732+
},
17301733
Token::Str("token"),
17311734
Token::Str("ZW5jb2RlZA"),
17321735
Token::StructEnd,
@@ -1841,7 +1844,10 @@ mod tests {
18411844
len: 2,
18421845
},
18431846
Token::Str("type"),
1844-
Token::Str("DapAuth"),
1847+
Token::UnitVariant {
1848+
name: "AuthenticationToken",
1849+
variant: "DapAuth",
1850+
},
18451851
Token::Str("token"),
18461852
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
18471853
Token::StructEnd,
@@ -1852,7 +1858,10 @@ mod tests {
18521858
len: 2,
18531859
},
18541860
Token::Str("type"),
1855-
Token::Str("DapAuth"),
1861+
Token::UnitVariant {
1862+
name: "AuthenticationToken",
1863+
variant: "DapAuth",
1864+
},
18561865
Token::Str("token"),
18571866
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
18581867
Token::StructEnd,

aggregator_core/src/task.rs

+12-3
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,10 @@ mod tests {
11381138
len: 2,
11391139
},
11401140
Token::Str("type"),
1141-
Token::Str("DapAuth"),
1141+
Token::UnitVariant {
1142+
name: "AuthenticationToken",
1143+
variant: "DapAuth",
1144+
},
11421145
Token::Str("token"),
11431146
Token::Str("YWdncmVnYXRvciB0b2tlbg"),
11441147
Token::StructEnd,
@@ -1150,7 +1153,10 @@ mod tests {
11501153
len: 2,
11511154
},
11521155
Token::Str("type"),
1153-
Token::Str("Bearer"),
1156+
Token::UnitVariant {
1157+
name: "AuthenticationToken",
1158+
variant: "Bearer",
1159+
},
11541160
Token::Str("token"),
11551161
Token::Str("Y29sbGVjdG9yIHRva2Vu"),
11561162
Token::StructEnd,
@@ -1334,7 +1340,10 @@ mod tests {
13341340
len: 2,
13351341
},
13361342
Token::Str("type"),
1337-
Token::Str("Bearer"),
1343+
Token::UnitVariant {
1344+
name: "AuthenticationToken",
1345+
variant: "Bearer",
1346+
},
13381347
Token::Str("token"),
13391348
Token::Str("YWdncmVnYXRvciB0b2tlbg"),
13401349
Token::StructEnd,

0 commit comments

Comments
 (0)