ci: reduce chances of false positives from vweb_test.v on macos
							parent
							
								
									c74fa9e471
								
							
						
					
					
						commit
						094936d764
					
				|  | @ -50,7 +50,11 @@ fn test_a_simple_vweb_app_runs_in_the_background() { | |||
| 		res := os.system(server_exec_cmd) | ||||
| 		assert res == 0 | ||||
| 	} | ||||
| 	time.sleep(100 * time.millisecond) | ||||
| 	$if macos { | ||||
| 		time.sleep(1000 * time.millisecond) | ||||
| 	} $else { | ||||
| 		time.sleep(100 * time.millisecond) | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // web client tests follow
 | ||||
|  |  | |||
|  | @ -81,7 +81,7 @@ pub fn (mut app App) user_repo_settings(username string, repository string) vweb | |||
| [post] | ||||
| ['/json_echo'] | ||||
| pub fn (mut app App) json_echo() vweb.Result { | ||||
| 	eprintln('>>>>> received http request at /json_echo is: $app.req') | ||||
| 	// eprintln('>>>>> received http request at /json_echo is: $app.req')
 | ||||
| 	app.set_content_type(app.req.headers['Content-Type']) | ||||
| 	return app.ok(app.req.data) | ||||
| } | ||||
|  | @ -89,7 +89,7 @@ pub fn (mut app App) json_echo() vweb.Result { | |||
| // Make sure [post] works without the path
 | ||||
| [post] | ||||
| pub fn (mut app App) json() vweb.Result { | ||||
| 	eprintln('>>>>> received http request at /json is: $app.req') | ||||
| 	// eprintln('>>>>> received http request at /json is: $app.req')
 | ||||
| 	app.set_content_type(app.req.headers['Content-Type']) | ||||
| 	return app.ok(app.req.data) | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue