@@ -88,8 +88,10 @@ pub enum Scenario {
8888 MissingComponent ,
8989 /// Three dates, v2 manifests, RLS available in first, middle missing nightly
9090 MissingNightly ,
91- /// Two dates, v2 manifests, host and MULTI_ARCH1 in first, host not in second
92- HostGoesMissing ,
91+ /// 1 date, v2 manifests, host and MULTI_ARCH1 in first
92+ HostGoesMissingBefore ,
93+ /// 1 later date, v2 manifests, MULTI_ARCH1 only
94+ HostGoesMissingAfter ,
9395 /// Three dates, v2 manifests, host and MULTI_ARCH1 in first, host only in second,
9496 /// host and MULTI_ARCH1 but no RLS in last
9597 MissingComponentMulti ,
@@ -124,7 +126,8 @@ impl ConstState {
124126 Scenario :: ArchivesV2TwoVersions => RwLock :: new( None ) ,
125127 Scenario :: Empty => RwLock :: new( None ) ,
126128 Scenario :: Full => RwLock :: new( None ) ,
127- Scenario :: HostGoesMissing => RwLock :: new( None ) ,
129+ Scenario :: HostGoesMissingBefore => RwLock :: new( None ) ,
130+ Scenario :: HostGoesMissingAfter => RwLock :: new( None ) ,
128131 Scenario :: MissingComponent => RwLock :: new( None ) ,
129132 Scenario :: MissingComponentMulti => RwLock :: new( None ) ,
130133 Scenario :: MissingNightly => RwLock :: new( None ) ,
@@ -1027,10 +1030,12 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
10271030 Release :: beta( "1.2.0" , "2015-01-02" ) . multi_arch( ) ,
10281031 Release :: stable( "1.1.0" , "2015-01-02" ) . multi_arch( ) ,
10291032 ] ,
1030- Scenario :: HostGoesMissing => vec ! [
1031- Release :: new( "nightly" , "1.3.0" , "2019-12-09" , "1" ) ,
1032- Release :: new( "nightly" , "1.3.0" , "2019-12-10" , "2" ) . only_multi_arch( ) ,
1033- ] ,
1033+ Scenario :: HostGoesMissingBefore => {
1034+ vec ! [ Release :: new( "nightly" , "1.3.0" , "2019-12-09" , "1" ) ]
1035+ }
1036+ Scenario :: HostGoesMissingAfter => {
1037+ vec ! [ Release :: new( "nightly" , "1.3.0" , "2019-12-10" , "2" ) . only_multi_arch( ) ]
1038+ }
10341039 Scenario :: MissingComponentMulti => vec ! [
10351040 Release :: new( "nightly" , "1.37.0" , "2019-09-12" , "1" )
10361041 . multi_arch( )
@@ -1055,7 +1060,8 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
10551060 | Scenario :: Unavailable
10561061 | Scenario :: UnavailableRls
10571062 | Scenario :: MissingNightly
1058- | Scenario :: HostGoesMissing
1063+ | Scenario :: HostGoesMissingBefore
1064+ | Scenario :: HostGoesMissingAfter
10591065 | Scenario :: MissingComponent
10601066 | Scenario :: MissingComponentMulti => vec ! [ ManifestVersion :: V2 ] ,
10611067 } ;
0 commit comments