@@ -30,7 +30,7 @@ fn empty_volta_home_is_created() {
3030 assert ! ( Sandbox :: path_exists( ".volta/tools/user" ) ) ;
3131
3232 // Layout file should now exist
33- assert ! ( Sandbox :: path_exists( ".volta/layout.v3 " ) ) ;
33+ assert ! ( Sandbox :: path_exists( ".volta/layout.v4 " ) ) ;
3434
3535 // shims should all be created
3636 // NOTE: this doesn't work in Windows, because the default shims are stored separately
@@ -58,6 +58,7 @@ fn legacy_v0_volta_home_is_upgraded() {
5858 // Layout file is not there
5959 assert ! ( !Sandbox :: path_exists( ".volta/layout.v1" ) ) ;
6060 assert ! ( !Sandbox :: path_exists( ".volta/layout.v2" ) ) ;
61+ assert ! ( !Sandbox :: path_exists( ".volta/layout.v3" ) ) ;
6162
6263 // running volta should not create anything else
6364 assert_that ! ( s. volta( "--version" ) , execs( ) . with_status( 0 ) ) ;
@@ -73,7 +74,8 @@ fn legacy_v0_volta_home_is_upgraded() {
7374 // Most recent layout file should exist, others should not
7475 assert ! ( !Sandbox :: path_exists( ".volta/layout.v1" ) ) ;
7576 assert ! ( !Sandbox :: path_exists( ".volta/layout.v2" ) ) ;
76- assert ! ( Sandbox :: path_exists( ".volta/layout.v3" ) ) ;
77+ assert ! ( !Sandbox :: path_exists( ".volta/layout.v3" ) ) ;
78+ assert ! ( Sandbox :: path_exists( ".volta/layout.v4" ) ) ;
7779
7880 // shims should all be created
7981 // NOTE: this doesn't work in Windows, because the default shims are stored separately
@@ -141,7 +143,8 @@ fn tagged_v1_volta_home_is_upgraded() {
141143 // Most recent layout file should exist, others should not
142144 assert ! ( !Sandbox :: path_exists( ".volta/layout.v1" ) ) ;
143145 assert ! ( !Sandbox :: path_exists( ".volta/layout.v2" ) ) ;
144- assert ! ( Sandbox :: path_exists( ".volta/layout.v3" ) ) ;
146+ assert ! ( !Sandbox :: path_exists( ".volta/layout.v3" ) ) ;
147+ assert ! ( Sandbox :: path_exists( ".volta/layout.v4" ) ) ;
145148
146149 // shims should all be created
147150 // NOTE: this doesn't work in Windows, because the default shims are stored separately
@@ -206,12 +209,12 @@ fn tagged_v1_to_v2_keeps_migrated_node_images() {
206209}
207210
208211#[ test]
209- fn current_v3_volta_home_is_unchanged ( ) {
210- let s = sandbox ( ) . layout_file ( "v3 " ) . build ( ) ;
212+ fn current_v4_volta_home_is_unchanged ( ) {
213+ let s = sandbox ( ) . layout_file ( "v4 " ) . build ( ) ;
211214
212215 // directories that are already created by the test framework
213216 assert ! ( Sandbox :: path_exists( ".volta" ) ) ;
214- assert ! ( Sandbox :: path_exists( ".volta/layout.v3 " ) ) ;
217+ assert ! ( Sandbox :: path_exists( ".volta/layout.v4 " ) ) ;
215218 assert ! ( Sandbox :: path_exists( ".volta/cache/node" ) ) ;
216219 assert ! ( Sandbox :: path_exists( ".volta/tmp" ) ) ;
217220 assert ! ( Sandbox :: path_exists( ".volta/tools/inventory/node" ) ) ;
@@ -222,7 +225,7 @@ fn current_v3_volta_home_is_unchanged() {
222225
223226 // everything should be the same as before running the command
224227 assert ! ( Sandbox :: path_exists( ".volta" ) ) ;
225- assert ! ( Sandbox :: path_exists( ".volta/layout.v3 " ) ) ;
228+ assert ! ( Sandbox :: path_exists( ".volta/layout.v4 " ) ) ;
226229 assert ! ( Sandbox :: path_exists( ".volta/cache/node" ) ) ;
227230 assert ! ( Sandbox :: path_exists( ".volta/tmp" ) ) ;
228231 assert ! ( Sandbox :: path_exists( ".volta/tools/inventory/node" ) ) ;
0 commit comments