Skip to content

Commit 04648fd

Browse files
committed
Make test succeed
1 parent 40d2e79 commit 04648fd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/slurm.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl Serialize for SlurmVersion {
146146
fn serialize<S: serde::Serializer>(
147147
&self, serializer: S,
148148
) -> Result<S::Ok, S::Error> {
149-
serializer.serialize_u8(2)
149+
serializer.serialize_u8(self.version)
150150
}
151151
}
152152

@@ -1189,7 +1189,7 @@ mod test {
11891189
Some(String::from("Key for ASN matching SKI"))
11901190
),
11911191
],
1192-
[]
1192+
None::<Vec<AspaFilter>>
11931193
),
11941194
LocallyAddedAssertions::new(
11951195
[
@@ -1220,7 +1220,7 @@ mod test {
12201220
None,
12211221
),
12221222
],
1223-
[]
1223+
None::<Vec<AspaAssertion>>
12241224
),
12251225
)
12261226
}
@@ -1280,12 +1280,12 @@ mod test {
12801280
Some(String::from("Key for ASN matching SKI"))
12811281
),
12821282
],
1283-
[
1283+
Some([
12841284
AspaFilter::new(
12851285
Some(64496.into()),
12861286
Some(String::from("ASPAs matching Customer ASID 64496"))
12871287
)
1288-
]
1288+
])
12891289
),
12901290
LocallyAddedAssertions::new(
12911291
[
@@ -1316,13 +1316,13 @@ mod test {
13161316
None,
13171317
),
13181318
],
1319-
[
1319+
Some([
13201320
AspaAssertion::new(
13211321
64496.into(),
13221322
ProviderAsns::try_from_iter([64497.into(), 64498.into()]).unwrap(),
13231323
Some(String::from("Locally assert 64497 and 64498 are providers for 64496"))
13241324
)
1325-
]
1325+
])
13261326
),
13271327
)
13281328
}

0 commit comments

Comments
 (0)