@@ -1601,7 +1601,8 @@ mod gpu {
16011601
16021602 #[ test]
16031603 fn proxy_routes_ocsp_and_rim_and_selects_outpost_policy ( ) {
1604- let args = nvattest_args ( "abcd" , Some ( "http://10.0.2.2:8090/" ) ) . unwrap ( ) ;
1604+ let nonce = format ! ( "test-nonce-{}" , std:: process:: id( ) ) ;
1605+ let args = nvattest_args ( & nonce, Some ( "http://10.0.2.2:8090/" ) ) . unwrap ( ) ;
16051606 assert ! ( args
16061607 . windows( 2 )
16071608 . any( |args| args == [ "--ocsp-url" , "http://10.0.2.2:8090/ocsp" ] ) ) ;
@@ -1612,17 +1613,18 @@ mod gpu {
16121613 . windows( 2 )
16131614 . any( |args| args == [ "--relying-party-policy" , TRUST_OUTPOST_POLICY ] ) ) ;
16141615
1615- let direct = nvattest_args ( "abcd" , None ) . unwrap ( ) ;
1616+ let direct = nvattest_args ( & nonce , None ) . unwrap ( ) ;
16161617 assert ! ( !direct. iter( ) . any( |arg| arg == "--ocsp-url" ) ) ;
16171618 assert ! ( !direct. iter( ) . any( |arg| arg == "--relying-party-policy" ) ) ;
16181619 }
16191620
16201621 #[ test]
16211622 fn proxy_url_validation_is_fail_closed ( ) {
1622- assert ! ( nvattest_args( "abcd" , Some ( "file:///tmp/proxy" ) ) . is_err( ) ) ;
1623- assert ! ( nvattest_args( "abcd" , Some ( "https://user@example.com" ) ) . is_err( ) ) ;
1624- assert ! ( nvattest_args( "abcd" , Some ( "https://example.com?q=1" ) ) . is_err( ) ) ;
1625- assert ! ( nvattest_args( "abcd" , Some ( "https://example.com/base" ) ) . is_err( ) ) ;
1623+ let nonce = format ! ( "test-nonce-{}" , std:: process:: id( ) ) ;
1624+ assert ! ( nvattest_args( & nonce, Some ( "file:///tmp/proxy" ) ) . is_err( ) ) ;
1625+ assert ! ( nvattest_args( & nonce, Some ( "https://user@example.com" ) ) . is_err( ) ) ;
1626+ assert ! ( nvattest_args( & nonce, Some ( "https://example.com?q=1" ) ) . is_err( ) ) ;
1627+ assert ! ( nvattest_args( & nonce, Some ( "https://example.com/base" ) ) . is_err( ) ) ;
16261628 assert ! ( normalize_proxy_url( Some ( " " ) ) . unwrap( ) . is_none( ) ) ;
16271629 }
16281630
0 commit comments