mirror of https://github.com/statping/statping
				
				
				
			cli delay for testing
							parent
							
								
									8004e17c39
								
							
						
					
					
						commit
						d380bc7f8b
					
				|  | @ -39,7 +39,7 @@ func TestStartServerCommand(t *testing.T) { | |||
| 	os.Setenv("DB_CONN", "sqlite") | ||||
| 	cmd := helperCommand(nil, "") | ||||
| 	var got = make(chan string) | ||||
| 	commandAndSleep(cmd, time.Duration(90*time.Second), got) | ||||
| 	commandAndSleep(cmd, time.Duration(180*time.Second), got) | ||||
| 	os.Unsetenv("DB_CONN") | ||||
| 	gg, _ := <-got | ||||
| 	assert.Contains(t, gg, "DB_CONN environment variable was found") | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Hunter Long
						Hunter Long