mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	test: ctrl_c_spec: bias timeouts for success (#7451)
Having timeouts that are likely to fail incurs a penalty of waiting for screen:expect() to fail, hence removing such small timeouts will speed up the test on average.
This commit is contained in:
		
				
					committed by
					
						
						Justin M. Keyes
					
				
			
			
				
	
			
			
			
						parent
						
							1de5b041a7
						
					
				
				
					commit
					da13d9a30c
				
			@@ -47,7 +47,7 @@ describe("CTRL-C (mapped)", function()
 | 
				
			|||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    -- The test is time-sensitive. Try different sleep values.
 | 
					    -- The test is time-sensitive. Try different sleep values.
 | 
				
			||||||
    local ms_values = {1, 10, 100, 1000, 10000}
 | 
					    local ms_values = {100, 1000, 10000}
 | 
				
			||||||
    for i, ms in ipairs(ms_values) do
 | 
					    for i, ms in ipairs(ms_values) do
 | 
				
			||||||
      if i < #ms_values then
 | 
					      if i < #ms_values then
 | 
				
			||||||
        local status, _ = pcall(test_ctrl_c, ms)
 | 
					        local status, _ = pcall(test_ctrl_c, ms)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user