File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -406,8 +406,8 @@ impl MessageReader for StdioMsgReader {
406
406
return None ;
407
407
}
408
408
409
- if res[ 0 ] == "Content -length:" {
410
- info ! ( "Header is missing 'Content -length'" ) ;
409
+ if res[ 0 ] . to_lowercase ( ) != "content -length:" {
410
+ info ! ( "Header is missing 'content -length'" ) ;
411
411
return None ;
412
412
}
413
413
Original file line number Diff line number Diff line change @@ -548,6 +548,11 @@ impl ls_server::Output for RecordOutput {
548
548
549
549
// Initialise the environment for a test.
550
550
fn init_env ( project_dir : & str ) {
551
+ match env:: var ( "RUST_TEST_THREADS" ) {
552
+ Ok ( ref var) if var == "1" => ( ) ,
553
+ _ => panic ! ( "Please run tests with `RUST_TEST_THREADS=1 cargo test`" ) ,
554
+ } ;
555
+
551
556
let mut cwd = env:: current_dir ( ) . expect ( FAIL_MSG ) ;
552
557
cwd. push ( "test_data" ) ;
553
558
cwd. push ( project_dir) ;
You can’t perform that action at this time.
0 commit comments