@@ -88,8 +88,10 @@ pub enum Scenario {
88
88
MissingComponent ,
89
89
/// Three dates, v2 manifests, RLS available in first, middle missing nightly
90
90
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 ,
93
95
/// Three dates, v2 manifests, host and MULTI_ARCH1 in first, host only in second,
94
96
/// host and MULTI_ARCH1 but no RLS in last
95
97
MissingComponentMulti ,
@@ -124,7 +126,8 @@ impl ConstState {
124
126
Scenario :: ArchivesV2TwoVersions => RwLock :: new( None ) ,
125
127
Scenario :: Empty => RwLock :: new( None ) ,
126
128
Scenario :: Full => RwLock :: new( None ) ,
127
- Scenario :: HostGoesMissing => RwLock :: new( None ) ,
129
+ Scenario :: HostGoesMissingBefore => RwLock :: new( None ) ,
130
+ Scenario :: HostGoesMissingAfter => RwLock :: new( None ) ,
128
131
Scenario :: MissingComponent => RwLock :: new( None ) ,
129
132
Scenario :: MissingComponentMulti => RwLock :: new( None ) ,
130
133
Scenario :: MissingNightly => RwLock :: new( None ) ,
@@ -1027,10 +1030,12 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
1027
1030
Release :: beta( "1.2.0" , "2015-01-02" ) . multi_arch( ) ,
1028
1031
Release :: stable( "1.1.0" , "2015-01-02" ) . multi_arch( ) ,
1029
1032
] ,
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
+ }
1034
1039
Scenario :: MissingComponentMulti => vec ! [
1035
1040
Release :: new( "nightly" , "1.37.0" , "2019-09-12" , "1" )
1036
1041
. multi_arch( )
@@ -1055,7 +1060,8 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
1055
1060
| Scenario :: Unavailable
1056
1061
| Scenario :: UnavailableRls
1057
1062
| Scenario :: MissingNightly
1058
- | Scenario :: HostGoesMissing
1063
+ | Scenario :: HostGoesMissingBefore
1064
+ | Scenario :: HostGoesMissingAfter
1059
1065
| Scenario :: MissingComponent
1060
1066
| Scenario :: MissingComponentMulti => vec ! [ ManifestVersion :: V2 ] ,
1061
1067
} ;
0 commit comments